Diff
Modified: branches/dfgFourthTier/Source/_javascript_Core/ChangeLog (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/ChangeLog 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/ChangeLog 2013-07-21 21:28:46 UTC (rev 152952)
@@ -1,3 +1,33 @@
+2013-07-20 Filip Pizlo <[email protected]>
+
+ fourthTier: FTL should be able to generate LLVM IR that uses an intrinsic for OSR exit
+ https://bugs.webkit.org/show_bug.cgi?id=118948
+
+ Reviewed by Sam Weinig.
+
+ - Add the ability to generate LLVM IR but then not use it, via --llvmAlwaysFails=true.
+ This allows doing "what if" experiments with IR generation, even if the generated IR
+ can't yet execute.
+
+ - Add an OSR exit path that just calls an intrinsic that combines the branch and the
+ off-ramp.
+
+ * _javascript_Core.xcodeproj/project.pbxproj:
+ * dfg/DFGPlan.cpp:
+ (JSC::DFG::Plan::compileInThreadImpl):
+ * ftl/FTLFail.cpp: Added.
+ (FTL):
+ (JSC::FTL::fail):
+ * ftl/FTLFail.h: Added.
+ (FTL):
+ * ftl/FTLIntrinsicRepository.h:
+ (FTL):
+ * ftl/FTLLowerDFGToLLVM.cpp:
+ (JSC::FTL::LowerDFGToLLVM::appendOSRExit):
+ (JSC::FTL::LowerDFGToLLVM::emitOSRExitCall):
+ * runtime/Options.h:
+ (JSC):
+
2013-07-19 Filip Pizlo <[email protected]>
fourthTier: StringObjectUse uses structures, and CSE should know that
Modified: branches/dfgFourthTier/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj 2013-07-21 21:28:46 UTC (rev 152952)
@@ -373,8 +373,10 @@
0FE5058C1798ABF500B35F8C /* DFGInPlaceAbstractState.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FE505881798ABF500B35F8C /* DFGInPlaceAbstractState.cpp */; };
0FE5058D1798ABF500B35F8C /* DFGInPlaceAbstractState.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE505891798ABF500B35F8C /* DFGInPlaceAbstractState.h */; settings = {ATTRIBUTES = (Private, ); }; };
0FE5058F1798AE7100B35F8C /* DFGMergeMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE5058E1798AE6F00B35F8C /* DFGMergeMode.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 0FE50591179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE50590179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h */; settings = {ATTRIBUTES = (Private, ); }; };
0FE50593179A604500B35F8C /* DFGEdgeUsesStructure.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE50592179A604500B35F8C /* DFGEdgeUsesStructure.h */; settings = {ATTRIBUTES = (Private, ); }; };
- 0FE50591179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE50590179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 0FE505A2179B60ED00B35F8C /* FTLFail.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FE505A0179B60ED00B35F8C /* FTLFail.cpp */; };
+ 0FE505A3179B60ED00B35F8C /* FTLFail.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE505A1179B60ED00B35F8C /* FTLFail.h */; settings = {ATTRIBUTES = (Private, ); }; };
0FE8534B1723CDA500B618F5 /* DFGDesiredWatchpoints.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FE853491723CDA500B618F5 /* DFGDesiredWatchpoints.cpp */; };
0FE8534C1723CDA500B618F5 /* DFGDesiredWatchpoints.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FE8534A1723CDA500B618F5 /* DFGDesiredWatchpoints.h */; settings = {ATTRIBUTES = (Private, ); }; };
0FEA0A08170513DB00BB722C /* FTLAbbreviations.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FEA09FD170513DB00BB722C /* FTLAbbreviations.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -1426,8 +1428,10 @@
0FE505881798ABF500B35F8C /* DFGInPlaceAbstractState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DFGInPlaceAbstractState.cpp; path = dfg/DFGInPlaceAbstractState.cpp; sourceTree = "<group>"; };
0FE505891798ABF500B35F8C /* DFGInPlaceAbstractState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGInPlaceAbstractState.h; path = dfg/DFGInPlaceAbstractState.h; sourceTree = "<group>"; };
0FE5058E1798AE6F00B35F8C /* DFGMergeMode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = DFGMergeMode.h; path = dfg/DFGMergeMode.h; sourceTree = "<group>"; };
+ 0FE50590179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGSaneStringGetByValSlowPathGenerator.h; path = dfg/DFGSaneStringGetByValSlowPathGenerator.h; sourceTree = "<group>"; };
0FE50592179A604500B35F8C /* DFGEdgeUsesStructure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGEdgeUsesStructure.h; path = dfg/DFGEdgeUsesStructure.h; sourceTree = "<group>"; };
- 0FE50590179A492400B35F8C /* DFGSaneStringGetByValSlowPathGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGSaneStringGetByValSlowPathGenerator.h; path = dfg/DFGSaneStringGetByValSlowPathGenerator.h; sourceTree = "<group>"; };
+ 0FE505A0179B60ED00B35F8C /* FTLFail.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FTLFail.cpp; path = ftl/FTLFail.cpp; sourceTree = "<group>"; };
+ 0FE505A1179B60ED00B35F8C /* FTLFail.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FTLFail.h; path = ftl/FTLFail.h; sourceTree = "<group>"; };
0FE853491723CDA500B618F5 /* DFGDesiredWatchpoints.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DFGDesiredWatchpoints.cpp; path = dfg/DFGDesiredWatchpoints.cpp; sourceTree = "<group>"; };
0FE8534A1723CDA500B618F5 /* DFGDesiredWatchpoints.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DFGDesiredWatchpoints.h; path = dfg/DFGDesiredWatchpoints.h; sourceTree = "<group>"; };
0FEA09FD170513DB00BB722C /* FTLAbbreviations.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FTLAbbreviations.h; path = ftl/FTLAbbreviations.h; sourceTree = "<group>"; };
@@ -2238,6 +2242,8 @@
0FEA09FC1705137F00BB722C /* ftl */ = {
isa = PBXGroup;
children = (
+ 0FE505A0179B60ED00B35F8C /* FTLFail.cpp */,
+ 0FE505A1179B60ED00B35F8C /* FTLFail.h */,
0FDB2CC7173DA51E007B3C1B /* FTLAbbreviatedTypes.h */,
0FEA09FD170513DB00BB722C /* FTLAbbreviations.h */,
0FEA0A171708B00700BB722C /* FTLAbstractHeap.cpp */,
@@ -3559,6 +3565,7 @@
C24D31E3161CD695002AA4DB /* HeapStatistics.h in Headers */,
C2E526BE1590EF000054E48D /* HeapTimer.h in Headers */,
0F4680D514BBD24B00BFE272 /* HostCallReturnValue.h in Headers */,
+ 0FE505A3179B60ED00B35F8C /* FTLFail.h in Headers */,
BC18C40F0E16F5CD00B34460 /* Identifier.h in Headers */,
0FEA0A0E170513DB00BB722C /* FTLJITCode.h in Headers */,
C25F8BCE157544A900245B71 /* IncrementalSweeper.h in Headers */,
@@ -4505,6 +4512,7 @@
14469DE2107EC7E700650446 /* NumberConstructor.cpp in Sources */,
14469DE3107EC7E700650446 /* NumberObject.cpp in Sources */,
0FE50563178F5B0500B35F8C /* DFGBasicBlock.cpp in Sources */,
+ 0FE505A2179B60ED00B35F8C /* FTLFail.cpp in Sources */,
14469DE4107EC7E700650446 /* NumberPrototype.cpp in Sources */,
86F3EEBE168CDE930077B92A /* ObjCCallbackFunction.mm in Sources */,
14469DE5107EC7E700650446 /* ObjectConstructor.cpp in Sources */,
Modified: branches/dfgFourthTier/Source/_javascript_Core/dfg/DFGPlan.cpp (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/dfg/DFGPlan.cpp 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/dfg/DFGPlan.cpp 2013-07-21 21:28:46 UTC (rev 152952)
@@ -54,6 +54,7 @@
#include "DFGVirtualRegisterAllocationPhase.h"
#include "FTLCapabilities.h"
#include "FTLCompile.h"
+#include "FTLFail.h"
#include "FTLLink.h"
#include "FTLLowerDFGToLLVM.h"
#include "FTLState.h"
@@ -223,6 +224,11 @@
if (Options::reportCompileTimes())
beforeFTL = currentTimeMS();
+ if (Options::llvmAlwaysFails()) {
+ FTL::fail(state);
+ return FTLPath;
+ }
+
FTL::compile(state);
FTL::link(state);
return FTLPath;
Added: branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.cpp (0 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.cpp (rev 0)
+++ branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.cpp 2013-07-21 21:28:46 UTC (rev 152952)
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2013 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.
+ */
+
+#include "config.h"
+#include "FTLFail.h"
+
+#if ENABLE(FTL_JIT)
+
+#include "DFGFailedFinalizer.h"
+#include "FTLJITCode.h"
+#include <wtf/LLVMHeaders.h>
+
+namespace JSC { namespace FTL {
+
+using namespace DFG;
+
+void fail(State& state)
+{
+ state.graph.m_plan.finalizer = adoptPtr(new FailedFinalizer(state.graph.m_plan));
+
+ LLVMDisposeModule(state.module);
+}
+
+} } // namespace JSC::FTL
+
+#endif // ENABLE(FTL_JIT)
+
Added: branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.h (0 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.h (rev 0)
+++ branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLFail.h 2013-07-21 21:28:46 UTC (rev 152952)
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2013 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 FTLFail_h
+#define FTLFail_h
+
+#include <wtf/Platform.h>
+
+#if ENABLE(FTL_JIT)
+
+#include "FTLState.h"
+
+namespace JSC { namespace FTL {
+
+void fail(State&);
+
+} } // namespace JSC::FTL
+
+#endif // ENABLE(FTL_JIT)
+
+#endif // FTLFail_h
+
Modified: branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLIntrinsicRepository.h (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLIntrinsicRepository.h 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLIntrinsicRepository.h 2013-07-21 21:28:46 UTC (rev 152952)
@@ -41,7 +41,8 @@
macro(doubleAbs, "llvm.fabs.f64", functionType(doubleType, doubleType)) \
macro(mulWithOverflow32, "llvm.smul.with.overflow.i32", functionType(structType(m_context, int32, boolean), int32, int32)) \
macro(subWithOverflow32, "llvm.ssub.with.overflow.i32", functionType(structType(m_context, int32, boolean), int32, int32)) \
- macro(trap, "llvm.trap", functionType(voidType))
+ macro(trap, "llvm.trap", functionType(voidType)) \
+ macro(osrExit, "webkit_osr_exit", functionType(voidType, boolean, int32, Variadic))
#define FOR_EACH_FUNCTION_TYPE(macro) \
macro(I_DFGOperation_EJss, functionType(intPtr, intPtr, intPtr)) \
Modified: branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp 2013-07-21 21:28:46 UTC (rev 152952)
@@ -2488,35 +2488,49 @@
OSRExit& exit = m_ftlState.jitCode->osrExit.last();
OSRExitCompilationInfo& info = m_ftlState.osrExit.last();
- LBasicBlock failCase = FTL_NEW_BLOCK(m_out, ("OSR exit failCase"));
- LBasicBlock continuation = FTL_NEW_BLOCK(m_out, ("OSR exit continuation"));
+ LBasicBlock lastNext = 0;
+ LBasicBlock continuation = 0;
- m_out.branch(failCondition, failCase, continuation);
+ if (!Options::useLLVMOSRExitIntrinsic()) {
+ LBasicBlock failCase = FTL_NEW_BLOCK(m_out, ("OSR exit failCase"));
+ continuation = FTL_NEW_BLOCK(m_out, ("OSR exit continuation"));
+
+ m_out.branch(failCondition, failCase, continuation);
+
+ m_out.appendTo(m_prologue);
+ info.m_thunkAddress = buildAlloca(m_out.m_builder, m_out.intPtr);
- m_out.appendTo(m_prologue);
- info.m_thunkAddress = buildAlloca(m_out.m_builder, m_out.intPtr);
+ lastNext = m_out.appendTo(failCase, continuation);
+ }
- LBasicBlock lastNext = m_out.appendTo(failCase, continuation);
-
if (Options::ftlOSRExitOmitsMarshalling()) {
m_out.call(
m_out.intToPtr(
m_out.get(info.m_thunkAddress),
pointerType(functionType(m_out.voidType))));
} else
- emitOSRExitCall(exit, info, lowValue, direction, recovery);
- m_out.unreachable();
+ emitOSRExitCall(failCondition, index, exit, info, lowValue, direction, recovery);
- m_out.appendTo(continuation, lastNext);
+ if (!Options::useLLVMOSRExitIntrinsic()) {
+ m_out.unreachable();
+
+ m_out.appendTo(continuation, lastNext);
- m_exitThunkGenerator.emitThunk(index);
+ m_exitThunkGenerator.emitThunk(index);
+ }
}
void emitOSRExitCall(
- OSRExit& exit, OSRExitCompilationInfo& info, FormattedValue lowValue,
- SpeculationDirection direction, FormattedValue recovery)
+ LValue failCondition, unsigned index, OSRExit& exit, OSRExitCompilationInfo& info,
+ FormattedValue lowValue, SpeculationDirection direction, FormattedValue recovery)
{
ExitArgumentList arguments;
+
+ if (Options::useLLVMOSRExitIntrinsic()) {
+ arguments.append(failCondition);
+ arguments.append(m_out.constInt32(index));
+ }
+
arguments.append(m_callFrame);
if (!!lowValue)
arguments.append(lowValue.value());
@@ -2560,6 +2574,11 @@
for (unsigned i = 0; i < arguments.size(); ++i)
argumentTypes.append(typeOf(arguments[i]));
+ if (Options::useLLVMOSRExitIntrinsic()) {
+ m_out.call(m_out.osrExitIntrinsic(), arguments);
+ return;
+ }
+
m_out.call(
m_out.intToPtr(
m_out.get(info.m_thunkAddress),
Modified: branches/dfgFourthTier/Source/_javascript_Core/runtime/Options.h (152951 => 152952)
--- branches/dfgFourthTier/Source/_javascript_Core/runtime/Options.h 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Source/_javascript_Core/runtime/Options.h 2013-07-21 21:28:46 UTC (rev 152952)
@@ -94,7 +94,9 @@
v(bool, useLLVMSmallCodeModel, false) \
v(bool, ftlTrapsOnOSRExit, false) \
v(bool, ftlOSRExitOmitsMarshalling, false) \
+ v(bool, useLLVMOSRExitIntrinsic, false) \
v(bool, dumpLLVMIR, false) \
+ v(bool, llvmAlwaysFails, false) \
v(unsigned, llvmBackendOptimizationLevel, 2) \
v(unsigned, llvmOptimizationLevel, 2) \
v(unsigned, llvmSizeLevel, 0) \
Modified: branches/dfgFourthTier/Tools/ChangeLog (152951 => 152952)
--- branches/dfgFourthTier/Tools/ChangeLog 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Tools/ChangeLog 2013-07-21 21:28:46 UTC (rev 152952)
@@ -1,5 +1,29 @@
2013-07-20 Filip Pizlo <[email protected]>
+ fourthTier: FTL should be able to generate LLVM IR that uses an intrinsic for OSR exit
+ https://bugs.webkit.org/show_bug.cgi?id=118948
+
+ Reviewed by Sam Weinig.
+
+ - Make ReducedFTL capable of dealing with code that uses the fake OSR exit intrinsic,
+ by exporting it as a function.
+
+ - Make combineModules.rb idempotent. Sometimes it's convenient to run a file through
+ it even if you know that you've already done so. See processIRDump.sh.
+
+ - Add a script, processIRDump.sh, that takes the output of --dumpLLVMIR=true and
+ runs it through ReducedFTL automatically. You typically want to say something like:
+
+ jsc --dumpLLVMIR=true <program(s)> > jsc-output.txt
+ ./processIRDump.sh --timing < jsc-output.txt
+
+ * ReducedFTL/ReducedFTL.c:
+ (webkit_osr_exit):
+ * ReducedFTL/combineModules.rb:
+ * ReducedFTL/processIRDump.sh: Added.
+
+2013-07-20 Filip Pizlo <[email protected]>
+
fourthTier: We should use the no-asserts build of LLVM if that's what the user configured
https://bugs.webkit.org/show_bug.cgi?id=118947
Modified: branches/dfgFourthTier/Tools/ReducedFTL/ReducedFTL.c (152951 => 152952)
--- branches/dfgFourthTier/Tools/ReducedFTL/ReducedFTL.c 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Tools/ReducedFTL/ReducedFTL.c 2013-07-21 21:28:46 UTC (rev 152952)
@@ -146,6 +146,11 @@
}
}
+void webkit_osr_exit()
+{
+ abort();
+}
+
int main(int c, char **v)
{
LLVMContextRef *contexts;
Modified: branches/dfgFourthTier/Tools/ReducedFTL/combineModules.rb (152951 => 152952)
--- branches/dfgFourthTier/Tools/ReducedFTL/combineModules.rb 2013-07-21 19:05:56 UTC (rev 152951)
+++ branches/dfgFourthTier/Tools/ReducedFTL/combineModules.rb 2013-07-21 21:28:46 UTC (rev 152952)
@@ -78,9 +78,16 @@
loop {
line = $stdin.readline
+ if line =~ /^; NOTE: THIS IS A COMBINED MODULE/
+ puts line
+ puts $stdin.read
+ exit 0
+ end
break if line =~ /^define/
}
+puts "; NOTE: THIS IS A COMBINED MODULE"
+
# Loop over all definitions.
shouldContinue = true
while shouldContinue
Added: branches/dfgFourthTier/Tools/ReducedFTL/processIRDump.sh (0 => 152952)
--- branches/dfgFourthTier/Tools/ReducedFTL/processIRDump.sh (rev 0)
+++ branches/dfgFourthTier/Tools/ReducedFTL/processIRDump.sh 2013-07-21 21:28:46 UTC (rev 152952)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+if test "x${LLVM_PATH}" == "x"
+then
+ path=
+else
+ path="${LLVM_PATH}/bin/"
+fi
+
+./combineModules.rb > temp.ll
+${path}llvm-as temp.ll
+./ReducedFTL temp.bc "$@"
Property changes on: branches/dfgFourthTier/Tools/ReducedFTL/processIRDump.sh
___________________________________________________________________
Added: svn:executable