<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[192546] trunk/Source/JavaScriptCore</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/192546">192546</a></dd>
<dt>Author</dt> <dd>benjamin@webkit.org</dd>
<dt>Date</dt> <dd>2015-11-17 15:44:01 -0800 (Tue, 17 Nov 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>[JSC] Add an empty FTLOutput for B3 that crashes on any operation
https://bugs.webkit.org/show_bug.cgi?id=151366
Patch by Benjamin Poulain <bpoulain@apple.com> on 2015-11-17
Reviewed by Filip Pizlo.
* JavaScriptCore.xcodeproj/project.pbxproj:
* ftl/B3Output.h: Added.
* ftl/FTLAbbreviatedTypes.h:
* ftl/FTLAbstractHeap.cpp:
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::DFG::LowerDFGToLLVM::createPhiVariables):
* ftl/FTLOutput.cpp:
* ftl/FTLOutput.h:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj">trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceJavaScriptCoreftlFTLAbbreviatedTypesh">trunk/Source/JavaScriptCore/ftl/FTLAbbreviatedTypes.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreftlFTLAbstractHeapcpp">trunk/Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreftlFTLLowerDFGToLLVMcpp">trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreftlFTLOutputcpp">trunk/Source/JavaScriptCore/ftl/FTLOutput.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreftlFTLOutputh">trunk/Source/JavaScriptCore/ftl/FTLOutput.h</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreftlFTLB3Outputh">trunk/Source/JavaScriptCore/ftl/FTLB3Output.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -1,5 +1,21 @@
</span><span class="cx"> 2015-11-17 Benjamin Poulain <bpoulain@apple.com>
</span><span class="cx">
</span><ins>+ [JSC] Add an empty FTLOutput for B3 that crashes on any operation
+ https://bugs.webkit.org/show_bug.cgi?id=151366
+
+ Reviewed by Filip Pizlo.
+
+ * JavaScriptCore.xcodeproj/project.pbxproj:
+ * ftl/B3Output.h: Added.
+ * ftl/FTLAbbreviatedTypes.h:
+ * ftl/FTLAbstractHeap.cpp:
+ * ftl/FTLLowerDFGToLLVM.cpp:
+ (JSC::FTL::DFG::LowerDFGToLLVM::createPhiVariables):
+ * ftl/FTLOutput.cpp:
+ * ftl/FTLOutput.h:
+
+2015-11-17 Benjamin Poulain <bpoulain@apple.com>
+
</ins><span class="cx"> [JSC] Do not copy the adjacency list when we just need to manipulate them
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=151343
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreJavaScriptCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -1083,6 +1083,7 @@
</span><span class="cx">                 2600B5A7152BAAA70091EE5F /* JSStringJoiner.h in Headers */ = {isa = PBXBuildFile; fileRef = 2600B5A5152BAAA70091EE5F /* JSStringJoiner.h */; };
</span><span class="cx">                 26718BA41BE99F780052017B /* AirIteratedRegisterCoalescing.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26718BA21BE99F780052017B /* AirIteratedRegisterCoalescing.cpp */; };
</span><span class="cx">                 26718BA51BE99F780052017B /* AirIteratedRegisterCoalescing.h in Headers */ = {isa = PBXBuildFile; fileRef = 26718BA31BE99F780052017B /* AirIteratedRegisterCoalescing.h */; };
</span><ins>+                269D636E1BFBE5D100101B1D /* FTLB3Output.h in Headers */ = {isa = PBXBuildFile; fileRef = 269D636D1BFBE5D000101B1D /* FTLB3Output.h */; };
</ins><span class="cx">                 2A05ABD51961DF2400341750 /* JSPropertyNameEnumerator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2A05ABD31961DF2400341750 /* JSPropertyNameEnumerator.cpp */; };
</span><span class="cx">                 2A05ABD61961DF2400341750 /* JSPropertyNameEnumerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 2A05ABD41961DF2400341750 /* JSPropertyNameEnumerator.h */; };
</span><span class="cx">                 2A111245192FCE79005EE18D /* CustomGetterSetter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2A111243192FCE79005EE18D /* CustomGetterSetter.cpp */; };
</span><span class="lines">@@ -3103,6 +3104,7 @@
</span><span class="cx">                 264091FA1BE2FD4100684DB2 /* AirOpcode.opcodes */ = {isa = PBXFileReference; lastKnownFileType = text; name = AirOpcode.opcodes; path = b3/air/AirOpcode.opcodes; sourceTree = "<group>"; };
</span><span class="cx">                 26718BA21BE99F780052017B /* AirIteratedRegisterCoalescing.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AirIteratedRegisterCoalescing.cpp; path = b3/air/AirIteratedRegisterCoalescing.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 26718BA31BE99F780052017B /* AirIteratedRegisterCoalescing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AirIteratedRegisterCoalescing.h; path = b3/air/AirIteratedRegisterCoalescing.h; sourceTree = "<group>"; };
</span><ins>+                269D636D1BFBE5D000101B1D /* FTLB3Output.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FTLB3Output.h; path = ftl/FTLB3Output.h; sourceTree = "<group>"; };
</ins><span class="cx">                 2A05ABD31961DF2400341750 /* JSPropertyNameEnumerator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSPropertyNameEnumerator.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 2A05ABD41961DF2400341750 /* JSPropertyNameEnumerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPropertyNameEnumerator.h; sourceTree = "<group>"; };
</span><span class="cx">                 2A111243192FCE79005EE18D /* CustomGetterSetter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CustomGetterSetter.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -4352,6 +4354,7 @@
</span><span class="cx">                                 0FEA0A1A1708B00700BB722C /* FTLAbstractHeapRepository.h */,
</span><span class="cx">                                 0F485323187DFDEC0083B687 /* FTLAvailableRecovery.cpp */,
</span><span class="cx">                                 0F485324187DFDEC0083B687 /* FTLAvailableRecovery.h */,
</span><ins>+                                269D636D1BFBE5D000101B1D /* FTLB3Output.h */,
</ins><span class="cx">                                 0FEA09FE170513DB00BB722C /* FTLCapabilities.cpp */,
</span><span class="cx">                                 0FEA09FF170513DB00BB722C /* FTLCapabilities.h */,
</span><span class="cx">                                 0FEA0A251709623B00BB722C /* FTLCommonValues.cpp */,
</span><span class="lines">@@ -4370,7 +4373,6 @@
</span><span class="cx">                                 0F235BBE17178E1C00690C7F /* FTLExitArgument.h */,
</span><span class="cx">                                 0F235BBF17178E1C00690C7F /* FTLExitArgumentForOperand.cpp */,
</span><span class="cx">                                 0F235BC017178E1C00690C7F /* FTLExitArgumentForOperand.h */,
</span><del>-                                0F235BC117178E1C00690C7F /* FTLStackmapArgumentList.h */,
</del><span class="cx">                                 0F2B9CEE19D0BAC100B1D1B5 /* FTLExitPropertyValue.cpp */,
</span><span class="cx">                                 0F2B9CEF19D0BAC100B1D1B5 /* FTLExitPropertyValue.h */,
</span><span class="cx">                                 0F235BC217178E1C00690C7F /* FTLExitThunkGenerator.cpp */,
</span><span class="lines">@@ -4431,6 +4433,7 @@
</span><span class="cx">                                 0F25F1AB181635F300522F39 /* FTLSlowPathCall.h */,
</span><span class="cx">                                 0F25F1AC181635F300522F39 /* FTLSlowPathCallKey.cpp */,
</span><span class="cx">                                 0F25F1AD181635F300522F39 /* FTLSlowPathCallKey.h */,
</span><ins>+                                0F235BC117178E1C00690C7F /* FTLStackmapArgumentList.h */,
</ins><span class="cx">                                 0F9D33981803ADB70073C2BC /* FTLStackMaps.cpp */,
</span><span class="cx">                                 0F9D33991803ADB70073C2BC /* FTLStackMaps.h */,
</span><span class="cx">                                 0FEA0A151706BB9000BB722C /* FTLState.cpp */,
</span><span class="lines">@@ -6709,6 +6712,7 @@
</span><span class="cx">                                 0F4570411BE584CA0062A629 /* B3TimingScope.h in Headers */,
</span><span class="cx">                                 0F338E1E1BF286EA0013C88F /* B3LowerMacros.h in Headers */,
</span><span class="cx">                                 0FEC853C1BDACDAC0080FF74 /* B3Type.h in Headers */,
</span><ins>+                                269D636E1BFBE5D100101B1D /* FTLB3Output.h in Headers */,
</ins><span class="cx">                                 0FEC853E1BDACDAC0080FF74 /* B3UpsilonValue.h in Headers */,
</span><span class="cx">                                 0FEC85401BDACDAC0080FF74 /* B3UseCounts.h in Headers */,
</span><span class="cx">                                 0FEC85421BDACDAC0080FF74 /* B3Validate.h in Headers */,
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLAbbreviatedTypesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ftl/FTLAbbreviatedTypes.h (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLAbbreviatedTypes.h        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ftl/FTLAbbreviatedTypes.h        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -28,6 +28,10 @@
</span><span class="cx">
</span><span class="cx"> #if ENABLE(FTL_JIT)
</span><span class="cx">
</span><ins>+#include "DFGCommon.h"
+#include "B3BasicBlock.h"
+#include "B3Value.h"
+#include "B3Procedure.h"
</ins><span class="cx"> #include "LLVMAPI.h"
</span><span class="cx">
</span><span class="cx"> namespace JSC { namespace FTL {
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLAbstractHeapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -28,8 +28,10 @@
</span><span class="cx">
</span><span class="cx"> #if ENABLE(FTL_JIT)
</span><span class="cx">
</span><ins>+#include "DFGCommon.h"
</ins><span class="cx"> #include "FTLAbbreviations.h"
</span><span class="cx"> #include "FTLAbstractHeapRepository.h"
</span><ins>+#include "FTLB3Output.h"
</ins><span class="cx"> #include "FTLOutput.h"
</span><span class="cx"> #include "FTLTypedPointer.h"
</span><span class="cx"> #include "JSCInlines.h"
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLB3Outputh"></a>
<div class="addfile"><h4>Added: trunk/Source/JavaScriptCore/ftl/FTLB3Output.h (0 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLB3Output.h         (rev 0)
+++ trunk/Source/JavaScriptCore/ftl/FTLB3Output.h        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -0,0 +1,322 @@
</span><ins>+/*
+ * Copyright (C) 2013-2015 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef FTLB3Output_h
+#define FTLB3Output_h
+
+#if ENABLE(FTL_JIT)
+#if FTL_USES_B3
+
+#include "DFGCommon.h"
+#include "FTLAbbreviations.h"
+#include "FTLAbstractHeapRepository.h"
+#include "FTLCommonValues.h"
+#include "FTLIntrinsicRepository.h"
+#include "FTLState.h"
+#include "FTLSwitchCase.h"
+#include "FTLTypedPointer.h"
+#include "FTLWeight.h"
+#include "FTLWeightedTarget.h"
+#include <wtf/StringPrintStream.h>
+
+// FIXME: remove this once everything can be generated through B3.
+#if COMPILER(CLANG)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-noreturn"
+#pragma clang diagnostic ignored "-Wunused-parameter"
+#endif // COMPILER(CLANG)
+
+namespace JSC { namespace FTL {
+
+enum Scale { ScaleOne, ScaleTwo, ScaleFour, ScaleEight, ScalePtr };
+
+class Output : public IntrinsicRepository {
+public:
+ Output(LContext context)
+ : IntrinsicRepository(context)
+ {
+ CRASH();
+ }
+ ~Output() { CRASH(); }
+
+ void initialize(LModule, LValue, AbstractHeapRepository&) { CRASH(); }
+
+ LBasicBlock insertNewBlocksBefore(LBasicBlock nextBlock) { CRASH(); }
+
+ LBasicBlock appendTo(LBasicBlock, LBasicBlock nextBlock) { CRASH(); }
+
+ void appendTo(LBasicBlock) { CRASH(); }
+
+ LBasicBlock newBlock(const char* name = "") { CRASH(); }
+
+ LValue param(unsigned index) { CRASH(); }
+ LValue constBool(bool value) { CRASH(); }
+ LValue constInt32(int32_t value) { CRASH(); }
+ template<typename T>
+ LValue constIntPtr(T* value) { CRASH(); }
+ template<typename T>
+ LValue constIntPtr(T value) { CRASH(); }
+ LValue constInt64(int64_t value) { CRASH(); }
+ LValue constDouble(double value) { CRASH(); }
+
+ LValue phi(LType type) { CRASH(); }
+ template<typename... Params>
+ LValue phi(LType type, ValueFromBlock value, Params... theRest) { CRASH(); }
+ template<typename VectorType>
+ LValue phi(LType type, const VectorType& vector) { CRASH(); }
+ LValue add(LValue left, LValue right) { CRASH(); }
+ LValue sub(LValue left, LValue right) { CRASH(); }
+ LValue mul(LValue left, LValue right) { CRASH(); }
+ LValue div(LValue left, LValue right) { CRASH(); }
+ LValue rem(LValue left, LValue right) { CRASH(); }
+ LValue neg(LValue value) { CRASH(); }
+
+ LValue doubleAdd(LValue left, LValue right) { CRASH(); }
+ LValue doubleSub(LValue left, LValue right) { CRASH(); }
+ LValue doubleMul(LValue left, LValue right) { CRASH(); }
+ LValue doubleDiv(LValue left, LValue right) { CRASH(); }
+ LValue doubleRem(LValue left, LValue right) { CRASH(); }
+ LValue doubleNeg(LValue value) { CRASH(); }
+
+ LValue bitAnd(LValue left, LValue right) { CRASH(); }
+ LValue bitOr(LValue left, LValue right) { CRASH(); }
+ LValue bitXor(LValue left, LValue right) { CRASH(); }
+ LValue shl(LValue left, LValue right) { CRASH(); }
+ LValue aShr(LValue left, LValue right) { CRASH(); }
+ LValue lShr(LValue left, LValue right) { CRASH(); }
+ LValue bitNot(LValue value) { CRASH(); }
+
+ LValue insertElement(LValue vector, LValue element, LValue index) { CRASH(); }
+
+ LValue ceil64(LValue operand) { CRASH(); }
+ LValue ctlz32(LValue xOperand, LValue yOperand) { CRASH(); }
+ LValue addWithOverflow32(LValue left, LValue right) { CRASH(); }
+ LValue subWithOverflow32(LValue left, LValue right) { CRASH(); }
+ LValue mulWithOverflow32(LValue left, LValue right) { CRASH(); }
+ LValue addWithOverflow64(LValue left, LValue right) { CRASH(); }
+ LValue subWithOverflow64(LValue left, LValue right) { CRASH(); }
+ LValue mulWithOverflow64(LValue left, LValue right) { CRASH(); }
+ LValue doubleAbs(LValue value) { CRASH(); }
+
+ LValue doubleSin(LValue value) { CRASH(); }
+ LValue doubleCos(LValue value) { CRASH(); }
+
+ LValue doublePow(LValue xOperand, LValue yOperand) { CRASH(); }
+
+ LValue doublePowi(LValue xOperand, LValue yOperand) { CRASH(); }
+
+ LValue doubleSqrt(LValue value) { CRASH(); }
+
+ LValue doubleLog(LValue value) { CRASH(); }
+
+ static bool hasSensibleDoubleToInt() { CRASH(); }
+ LValue sensibleDoubleToInt(LValue) { CRASH(); }
+
+ LValue signExt(LValue value, LType type) { CRASH(); }
+ LValue zeroExt(LValue value, LType type) { CRASH(); }
+ LValue zeroExtPtr(LValue value) { CRASH(); }
+ LValue fpToInt(LValue value, LType type) { CRASH(); }
+ LValue fpToUInt(LValue value, LType type) { CRASH(); }
+ LValue fpToInt32(LValue value) { CRASH(); }
+ LValue fpToUInt32(LValue value) { CRASH(); }
+ LValue intToFP(LValue value, LType type) { CRASH(); }
+ LValue intToDouble(LValue value) { CRASH(); }
+ LValue unsignedToFP(LValue value, LType type) { CRASH(); }
+ LValue unsignedToDouble(LValue value) { CRASH(); }
+ LValue intCast(LValue value, LType type) { CRASH(); }
+ LValue castToInt32(LValue value) { CRASH(); }
+ LValue fpCast(LValue value, LType type) { CRASH(); }
+ LValue intToPtr(LValue value, LType type) { CRASH(); }
+ LValue ptrToInt(LValue value, LType type) { CRASH(); }
+ LValue bitCast(LValue value, LType type) { CRASH(); }
+
+ LValue fround(LValue doubleValue) { CRASH(); }
+
+ // Hilariously, the #define machinery in the stdlib means that this method is actually called
+ // __builtin_alloca. So far this appears benign. :-|
+ LValue alloca(LType type) { CRASH(); }
+
+ // Access the value of an alloca. Also used as a low-level implementation primitive for
+ // load(). Never use this to load from "pointers" in the FTL sense, since FTL pointers
+ // are actually integers. This requires an LLVM pointer. Broadly speaking, you don't
+ // have any LLVM pointers even if you really think you do. A TypedPointer is not an
+ // LLVM pointer. See comment block at top of this file to understand the distinction
+ // between LLVM pointers, FTL pointers, and FTL references.
+ LValue get(LValue reference) { CRASH(); }
+ // Similar to get() but for storing to the value in an alloca.
+ LValue set(LValue value, LValue reference) { CRASH(); }
+
+ LValue load(TypedPointer, LType refType) { CRASH(); }
+ void store(LValue, TypedPointer, LType refType) { CRASH(); }
+
+ LValue load8SignExt32(TypedPointer) { CRASH(); }
+ LValue load8ZeroExt32(TypedPointer) { CRASH(); }
+ LValue load16SignExt32(TypedPointer) { CRASH(); }
+ LValue load16ZeroExt32(TypedPointer) { CRASH(); }
+ LValue load32(TypedPointer pointer) { CRASH(); }
+ LValue load64(TypedPointer pointer) { CRASH(); }
+ LValue loadPtr(TypedPointer pointer) { CRASH(); }
+ LValue loadFloatToDouble(TypedPointer pointer) { CRASH(); }
+ LValue loadDouble(TypedPointer pointer) { CRASH(); }
+ void store16(LValue value, TypedPointer pointer) { CRASH(); }
+ void store32(LValue value, TypedPointer pointer) { CRASH(); }
+ void store64(LValue value, TypedPointer pointer) { CRASH(); }
+ void storePtr(LValue value, TypedPointer pointer) { CRASH(); }
+ void storeDouble(LValue value, TypedPointer pointer) { CRASH(); }
+
+ LValue addPtr(LValue value, ptrdiff_t immediate = 0) { CRASH(); }
+
+ // Construct an address by offsetting base by the requested amount and ascribing
+ // the requested abstract heap to it.
+ TypedPointer address(const AbstractHeap& heap, LValue base, ptrdiff_t offset = 0) { CRASH(); }
+ // Construct an address by offsetting base by the amount specified by the field,
+ // and optionally an additional amount (use this with care), and then creating
+ // a TypedPointer with the given field as the heap.
+ TypedPointer address(LValue base, const AbstractField& field, ptrdiff_t offset = 0) { CRASH(); }
+
+ LValue baseIndex(LValue base, LValue index, Scale, ptrdiff_t offset = 0) { CRASH(); }
+
+ TypedPointer baseIndex(const AbstractHeap& heap, LValue base, LValue index, Scale scale, ptrdiff_t offset = 0) { CRASH(); }
+ TypedPointer baseIndex(IndexedAbstractHeap& heap, LValue base, LValue index, JSValue indexAsConstant = JSValue(), ptrdiff_t offset = 0) { CRASH(); }
+
+ TypedPointer absolute(void* address) { CRASH(); }
+
+ LValue load8SignExt32(LValue base, const AbstractField& field) { CRASH(); }
+ LValue load8ZeroExt32(LValue base, const AbstractField& field) { CRASH(); }
+ LValue load16SignExt32(LValue base, const AbstractField& field) { CRASH(); }
+ LValue load16ZeroExt32(LValue base, const AbstractField& field) { CRASH(); }
+ LValue load32(LValue base, const AbstractField& field) { CRASH(); }
+ LValue load64(LValue base, const AbstractField& field) { CRASH(); }
+ LValue loadPtr(LValue base, const AbstractField& field) { CRASH(); }
+ LValue loadDouble(LValue base, const AbstractField& field) { CRASH(); }
+ void store32(LValue value, LValue base, const AbstractField& field) { CRASH(); }
+ void store64(LValue value, LValue base, const AbstractField& field) { CRASH(); }
+ void storePtr(LValue value, LValue base, const AbstractField& field) { CRASH(); }
+ void storeDouble(LValue value, LValue base, const AbstractField& field) { CRASH(); }
+
+ void ascribeRange(LValue loadInstruction, const ValueRange& range) { CRASH(); }
+
+ LValue nonNegative32(LValue loadInstruction) { CRASH(); }
+
+ LValue load32NonNegative(TypedPointer pointer) { CRASH(); }
+ LValue load32NonNegative(LValue base, const AbstractField& field) { CRASH(); }
+
+ LValue icmp(LIntPredicate cond, LValue left, LValue right) { CRASH(); }
+ LValue equal(LValue left, LValue right) { CRASH(); }
+ LValue notEqual(LValue left, LValue right) { CRASH(); }
+ LValue above(LValue left, LValue right) { CRASH(); }
+ LValue aboveOrEqual(LValue left, LValue right) { CRASH(); }
+ LValue below(LValue left, LValue right) { CRASH(); }
+ LValue belowOrEqual(LValue left, LValue right) { CRASH(); }
+ LValue greaterThan(LValue left, LValue right) { CRASH(); }
+ LValue greaterThanOrEqual(LValue left, LValue right) { CRASH(); }
+ LValue lessThan(LValue left, LValue right) { CRASH(); }
+ LValue lessThanOrEqual(LValue left, LValue right) { CRASH(); }
+
+ LValue fcmp(LRealPredicate cond, LValue left, LValue right) { CRASH(); }
+ LValue doubleEqual(LValue left, LValue right) { CRASH(); }
+ LValue doubleNotEqualOrUnordered(LValue left, LValue right) { CRASH(); }
+ LValue doubleLessThan(LValue left, LValue right) { CRASH(); }
+ LValue doubleLessThanOrEqual(LValue left, LValue right) { CRASH(); }
+ LValue doubleGreaterThan(LValue left, LValue right) { CRASH(); }
+ LValue doubleGreaterThanOrEqual(LValue left, LValue right) { CRASH(); }
+ LValue doubleEqualOrUnordered(LValue left, LValue right) { CRASH(); }
+ LValue doubleNotEqual(LValue left, LValue right) { CRASH(); }
+ LValue doubleLessThanOrUnordered(LValue left, LValue right) { CRASH(); }
+ LValue doubleLessThanOrEqualOrUnordered(LValue left, LValue right) { CRASH(); }
+ LValue doubleGreaterThanOrUnordered(LValue left, LValue right) { CRASH(); }
+ LValue doubleGreaterThanOrEqualOrUnordered(LValue left, LValue right) { CRASH(); }
+
+ LValue isZero32(LValue value) { CRASH(); }
+ LValue notZero32(LValue value) { CRASH(); }
+ LValue isZero64(LValue value) { CRASH(); }
+ LValue notZero64(LValue value) { CRASH(); }
+ LValue isNull(LValue value) { CRASH(); }
+ LValue notNull(LValue value) { CRASH(); }
+
+ LValue testIsZero32(LValue value, LValue mask) { CRASH(); }
+ LValue testNonZero32(LValue value, LValue mask) { CRASH(); }
+ LValue testIsZero64(LValue value, LValue mask) { CRASH(); }
+ LValue testNonZero64(LValue value, LValue mask) { CRASH(); }
+ LValue testIsZeroPtr(LValue value, LValue mask) { CRASH(); }
+ LValue testNonZeroPtr(LValue value, LValue mask) { CRASH(); }
+
+ LValue select(LValue value, LValue taken, LValue notTaken) { CRASH(); }
+ LValue extractValue(LValue aggVal, unsigned index) { CRASH(); }
+
+ LValue fence(LAtomicOrdering ordering = LLVMAtomicOrderingSequentiallyConsistent, SynchronizationScope scope = CrossThread) { CRASH(); }
+ LValue fenceAcqRel() { CRASH(); }
+
+ template<typename VectorType>
+ LValue call(LValue function, const VectorType& vector) { CRASH(); }
+ LValue call(LValue function) { CRASH(); }
+ LValue call(LValue function, LValue arg1) { CRASH(); }
+ template<typename... Args>
+ LValue call(LValue function, LValue arg1, Args... args) { CRASH(); }
+
+ template<typename FunctionType>
+ LValue operation(FunctionType function) { CRASH(); }
+
+ void jump(LBasicBlock destination) { CRASH(); }
+ void branch(LValue condition, LBasicBlock taken, Weight takenWeight, LBasicBlock notTaken, Weight notTakenWeight) { CRASH(); }
+ void branch(LValue condition, WeightedTarget taken, WeightedTarget notTaken) { CRASH(); }
+
+ // Branches to an already-created handler if true, "falls through" if false. Fall-through is
+ // simulated by creating a continuation for you.
+ void check(LValue condition, WeightedTarget taken, Weight notTakenWeight) { CRASH(); }
+
+ // Same as check(), but uses Weight::inverse() to compute the notTakenWeight.
+ void check(LValue condition, WeightedTarget taken) { CRASH(); }
+
+ template<typename VectorType>
+ void switchInstruction(LValue value, const VectorType& cases, LBasicBlock fallThrough, Weight fallThroughWeight) { CRASH(); }
+
+ void ret(LValue value) { CRASH(); }
+
+ void unreachable() { CRASH(); }
+
+ void trap() { CRASH(); }
+
+ ValueFromBlock anchor(LValue value) { CRASH(); }
+
+ LBasicBlock m_block;
+ LBasicBlock m_nextBlock;
+};
+
+#if COMPILER(CLANG)
+#pragma clang diagnostic pop
+#endif // COMPILER(CLANG)
+
+#define FTL_NEW_BLOCK(output, nameArguments) \
+ (LIKELY(!verboseCompilationEnabled()) \
+ ? (output).newBlock() \
+ : (output).newBlock((toCString nameArguments).data()))
+
+} } // namespace JSC::FTL
+
+#endif // FTL_USES_B3
+#endif // ENABLE(FTL_JIT)
+
+#endif // FTLB3Output_h
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLLowerDFGToLLVMcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -37,6 +37,7 @@
</span><span class="cx"> #include "DirectArguments.h"
</span><span class="cx"> #include "FTLAbstractHeapRepository.h"
</span><span class="cx"> #include "FTLAvailableRecovery.h"
</span><ins>+#include "FTLB3Output.h"
</ins><span class="cx"> #include "FTLForOSREntryJITCode.h"
</span><span class="cx"> #include "FTLFormattedValue.h"
</span><span class="cx"> #include "FTLInlineCacheSize.h"
</span><span class="lines">@@ -368,7 +369,7 @@
</span><span class="cx"> DFG_CRASH(m_graph, node, "Bad Phi node result type");
</span><span class="cx"> break;
</span><span class="cx"> }
</span><del>- m_phis.add(node, buildAlloca(m_out.m_builder, type));
</del><ins>+ m_phis.add(node, m_out.alloca(type));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLOutputcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ftl/FTLOutput.cpp (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLOutput.cpp        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ftl/FTLOutput.cpp        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -24,9 +24,12 @@
</span><span class="cx"> */
</span><span class="cx">
</span><span class="cx"> #include "config.h"
</span><ins>+
+#include "DFGCommon.h"
</ins><span class="cx"> #include "FTLOutput.h"
</span><span class="cx">
</span><span class="cx"> #if ENABLE(FTL_JIT)
</span><ins>+#if !FTL_USES_B3
</ins><span class="cx">
</span><span class="cx"> namespace JSC { namespace FTL {
</span><span class="cx">
</span><span class="lines">@@ -154,5 +157,6 @@
</span><span class="cx">
</span><span class="cx"> } } // namespace JSC::FTL
</span><span class="cx">
</span><ins>+#endif // !FTL_USES_B3
</ins><span class="cx"> #endif // ENABLE(FTL_JIT)
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreftlFTLOutputh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ftl/FTLOutput.h (192545 => 192546)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ftl/FTLOutput.h        2015-11-17 23:15:31 UTC (rev 192545)
+++ trunk/Source/JavaScriptCore/ftl/FTLOutput.h        2015-11-17 23:44:01 UTC (rev 192546)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #define FTLOutput_h
</span><span class="cx">
</span><span class="cx"> #if ENABLE(FTL_JIT)
</span><ins>+#if !FTL_USES_B3
</ins><span class="cx">
</span><span class="cx"> #include "DFGCommon.h"
</span><span class="cx"> #include "FTLAbbreviations.h"
</span><span class="lines">@@ -478,6 +479,7 @@
</span><span class="cx">
</span><span class="cx"> } } // namespace JSC::FTL
</span><span class="cx">
</span><ins>+#endif // !FTL_USES_B3
</ins><span class="cx"> #endif // ENABLE(FTL_JIT)
</span><span class="cx">
</span><span class="cx"> #endif // FTLOutput_h
</span></span></pre>
</div>
</div>
</body>
</html>