source: webkit/trunk/Source/JavaScriptCore/Target.pri@ 112454

Last change on this file since 112454 was 111974, checked in by [email protected], 13 years ago

DFG Fixup should be able to short-circuit trivial ValueToInt32's
https://bugs.webkit.org/show_bug.cgi?id=82030

Reviewed by Michael Saboff.

Takes the fixup() method of the prediction propagation phase and makes it
into its own phase. Adds the ability to short-circuit trivial ValueToInt32
nodes, and mark pure ValueToInt32's as such.

  • CMakeLists.txt:
  • GNUmakefile.list.am:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • Target.pri:
  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::makeSafe):
(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::parseBlock):

  • dfg/DFGCommon.h:
  • dfg/DFGDriver.cpp:

(JSC::DFG::compile):

  • dfg/DFGFixupPhase.cpp: Added.

(DFG):
(FixupPhase):
(JSC::DFG::FixupPhase::FixupPhase):
(JSC::DFG::FixupPhase::run):
(JSC::DFG::FixupPhase::fixupNode):
(JSC::DFG::FixupPhase::fixIntEdge):
(JSC::DFG::performFixup):

  • dfg/DFGFixupPhase.h: Added.

(DFG):

  • dfg/DFGPredictionPropagationPhase.cpp:

(JSC::DFG::PredictionPropagationPhase::run):
(PredictionPropagationPhase):

File size: 7.6 KB
Line 
1# -------------------------------------------------------------------
2# Target file for the JavaScriptSource library
3#
4# See 'Tools/qmake/README' for an overview of the build system
5# -------------------------------------------------------------------
6
7TEMPLATE = lib
8TARGET = JavaScriptCore
9
10include(JavaScriptCore.pri)
11
12WEBKIT += wtf
13QT += core
14QT -= gui
15
16CONFIG += staticlib
17
18*-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
19*-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
20
21# Rules when JIT enabled (not disabled)
22!contains(DEFINES, ENABLE_JIT=0) {
23 linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
24 QMAKE_CXXFLAGS += -fno-stack-protector
25 QMAKE_CFLAGS += -fno-stack-protector
26 }
27}
28
29wince* {
30 SOURCES += $$QT_SOURCE_TREE/src/3rdparty/ce-compat/ce_time.c
31}
32
33include(yarr/yarr.pri)
34
35INSTALLDEPS += all
36
37SOURCES += \
38 API/JSBase.cpp \
39 API/JSCallbackConstructor.cpp \
40 API/JSCallbackFunction.cpp \
41 API/JSCallbackObject.cpp \
42 API/JSClassRef.cpp \
43 API/JSContextRef.cpp \
44 API/JSObjectRef.cpp \
45 API/JSStringRef.cpp \
46 API/JSValueRef.cpp \
47 API/OpaqueJSString.cpp \
48 assembler/ARMAssembler.cpp \
49 assembler/ARMv7Assembler.cpp \
50 assembler/MacroAssemblerARM.cpp \
51 assembler/MacroAssemblerSH4.cpp \
52 bytecode/CallLinkInfo.cpp \
53 bytecode/CallLinkStatus.cpp \
54 bytecode/CodeBlock.cpp \
55 bytecode/DFGExitProfile.cpp \
56 bytecode/ExecutionCounter.cpp \
57 bytecode/GetByIdStatus.cpp \
58 bytecode/JumpTable.cpp \
59 bytecode/LazyOperandValueProfile.cpp \
60 bytecode/MethodCallLinkInfo.cpp \
61 bytecode/MethodCallLinkStatus.cpp \
62 bytecode/MethodOfGettingAValueProfile.cpp \
63 bytecode/Opcode.cpp \
64 bytecode/PolymorphicPutByIdList.cpp \
65 bytecode/PredictedType.cpp \
66 bytecode/PutByIdStatus.cpp \
67 bytecode/SamplingTool.cpp \
68 bytecode/StructureStubInfo.cpp \
69 bytecompiler/BytecodeGenerator.cpp \
70 bytecompiler/NodesCodegen.cpp \
71 heap/CopiedSpace.cpp \
72 heap/ConservativeRoots.cpp \
73 heap/DFGCodeBlocks.cpp \
74 heap/HandleHeap.cpp \
75 heap/HandleStack.cpp \
76 heap/Heap.cpp \
77 heap/MachineStackMarker.cpp \
78 heap/MarkStack.cpp \
79 heap/MarkedAllocator.cpp \
80 heap/MarkedBlock.cpp \
81 heap/MarkedSpace.cpp \
82 heap/VTableSpectrum.cpp \
83 heap/WriteBarrierSupport.cpp \
84 debugger/DebuggerActivation.cpp \
85 debugger/DebuggerCallFrame.cpp \
86 debugger/Debugger.cpp \
87 dfg/DFGAbstractState.cpp \
88 dfg/DFGAssemblyHelpers.cpp \
89 dfg/DFGByteCodeParser.cpp \
90 dfg/DFGCapabilities.cpp \
91 dfg/DFGCFAPhase.cpp \
92 dfg/DFGCorrectableJumpPoint.cpp \
93 dfg/DFGCSEPhase.cpp \
94 dfg/DFGDriver.cpp \
95 dfg/DFGFixupPhase.cpp \
96 dfg/DFGGraph.cpp \
97 dfg/DFGJITCompiler.cpp \
98 dfg/DFGNodeFlags.cpp \
99 dfg/DFGOperations.cpp \
100 dfg/DFGOSREntry.cpp \
101 dfg/DFGOSRExit.cpp \
102 dfg/DFGOSRExitCompiler.cpp \
103 dfg/DFGOSRExitCompiler64.cpp \
104 dfg/DFGOSRExitCompiler32_64.cpp \
105 dfg/DFGPhase.cpp \
106 dfg/DFGPredictionPropagationPhase.cpp \
107 dfg/DFGRedundantPhiEliminationPhase.cpp \
108 dfg/DFGRepatch.cpp \
109 dfg/DFGSpeculativeJIT.cpp \
110 dfg/DFGSpeculativeJIT32_64.cpp \
111 dfg/DFGSpeculativeJIT64.cpp \
112 dfg/DFGThunks.cpp \
113 dfg/DFGVirtualRegisterAllocationPhase.cpp \
114 interpreter/AbstractPC.cpp \
115 interpreter/CallFrame.cpp \
116 interpreter/Interpreter.cpp \
117 interpreter/RegisterFile.cpp \
118 jit/ExecutableAllocatorFixedVMPool.cpp \
119 jit/ExecutableAllocator.cpp \
120 jit/HostCallReturnValue.cpp \
121 jit/JITArithmetic.cpp \
122 jit/JITArithmetic32_64.cpp \
123 jit/JITCall.cpp \
124 jit/JITCall32_64.cpp \
125 jit/JIT.cpp \
126 jit/JITExceptions.cpp \
127 jit/JITOpcodes.cpp \
128 jit/JITOpcodes32_64.cpp \
129 jit/JITPropertyAccess.cpp \
130 jit/JITPropertyAccess32_64.cpp \
131 jit/JITStubs.cpp \
132 jit/ThunkGenerators.cpp \
133 parser/Lexer.cpp \
134 parser/Nodes.cpp \
135 parser/ParserArena.cpp \
136 parser/Parser.cpp \
137 parser/SourceProviderCache.cpp \
138 profiler/Profile.cpp \
139 profiler/ProfileGenerator.cpp \
140 profiler/ProfileNode.cpp \
141 profiler/Profiler.cpp \
142 runtime/ArgList.cpp \
143 runtime/Arguments.cpp \
144 runtime/ArrayConstructor.cpp \
145 runtime/ArrayPrototype.cpp \
146 runtime/BooleanConstructor.cpp \
147 runtime/BooleanObject.cpp \
148 runtime/BooleanPrototype.cpp \
149 runtime/CallData.cpp \
150 runtime/CommonIdentifiers.cpp \
151 runtime/Completion.cpp \
152 runtime/ConstructData.cpp \
153 runtime/DateConstructor.cpp \
154 runtime/DateConversion.cpp \
155 runtime/DateInstance.cpp \
156 runtime/DatePrototype.cpp \
157 runtime/ErrorConstructor.cpp \
158 runtime/Error.cpp \
159 runtime/ErrorInstance.cpp \
160 runtime/ErrorPrototype.cpp \
161 runtime/ExceptionHelpers.cpp \
162 runtime/Executable.cpp \
163 runtime/FunctionConstructor.cpp \
164 runtime/FunctionPrototype.cpp \
165 runtime/GCActivityCallback.cpp \
166 runtime/GetterSetter.cpp \
167 runtime/Options.cpp \
168 runtime/Identifier.cpp \
169 runtime/InitializeThreading.cpp \
170 runtime/InternalFunction.cpp \
171 runtime/JSActivation.cpp \
172 runtime/JSAPIValueWrapper.cpp \
173 runtime/JSArray.cpp \
174 runtime/JSByteArray.cpp \
175 runtime/JSCell.cpp \
176 runtime/JSDateMath.cpp \
177 runtime/JSFunction.cpp \
178 runtime/JSBoundFunction.cpp \
179 runtime/JSGlobalData.cpp \
180 runtime/JSGlobalObject.cpp \
181 runtime/JSGlobalObjectFunctions.cpp \
182 runtime/JSGlobalThis.cpp \
183 runtime/JSLock.cpp \
184 runtime/JSNotAnObject.cpp \
185 runtime/JSObject.cpp \
186 runtime/JSONObject.cpp \
187 runtime/JSPropertyNameIterator.cpp \
188 runtime/JSStaticScopeObject.cpp \
189 runtime/JSString.cpp \
190 runtime/JSValue.cpp \
191 runtime/JSVariableObject.cpp \
192 runtime/JSWrapperObject.cpp \
193 runtime/LiteralParser.cpp \
194 runtime/Lookup.cpp \
195 runtime/MathObject.cpp \
196 runtime/NativeErrorConstructor.cpp \
197 runtime/NativeErrorPrototype.cpp \
198 runtime/NumberConstructor.cpp \
199 runtime/NumberObject.cpp \
200 runtime/NumberPrototype.cpp \
201 runtime/ObjectConstructor.cpp \
202 runtime/ObjectPrototype.cpp \
203 runtime/Operations.cpp \
204 runtime/PropertyDescriptor.cpp \
205 runtime/PropertyNameArray.cpp \
206 runtime/PropertySlot.cpp \
207 runtime/RegExpConstructor.cpp \
208 runtime/RegExpCachedResult.cpp \
209 runtime/RegExpMatchesArray.cpp \
210 runtime/RegExp.cpp \
211 runtime/RegExpObject.cpp \
212 runtime/RegExpPrototype.cpp \
213 runtime/RegExpCache.cpp \
214 runtime/SamplingCounter.cpp \
215 runtime/ScopeChain.cpp \
216 runtime/SmallStrings.cpp \
217 runtime/StrictEvalActivation.cpp \
218 runtime/StringConstructor.cpp \
219 runtime/StringObject.cpp \
220 runtime/StringPrototype.cpp \
221 runtime/StringRecursionChecker.cpp \
222 runtime/StructureChain.cpp \
223 runtime/Structure.cpp \
224 runtime/TimeoutChecker.cpp \
225 runtime/UString.cpp \
226 tools/CodeProfile.cpp \
227 tools/CodeProfiling.cpp \
228 yarr/YarrJIT.cpp \
229
230*sh4* {
231 QMAKE_CXXFLAGS += -mieee -w
232 QMAKE_CFLAGS += -mieee -w
233}
234
235lessThan(QT_GCC_MAJOR_VERSION, 5) {
236 # GCC 4.5 and before
237 lessThan(QT_GCC_MINOR_VERSION, 6) {
238 # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
239 *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
240 }
241
242 # GCC 4.6 and after.
243 greaterThan(QT_GCC_MINOR_VERSION, 5) {
244 if (!contains(QMAKE_CXXFLAGS, -std=c++0x) && !contains(QMAKE_CXXFLAGS, -std=gnu++0x)) {
245 # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
246 QMAKE_CFLAGS_WARN_ON += -Wno-c++0x-compat
247 QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
248 QMAKE_CFLAGS += -Wno-c++0x-compat
249 QMAKE_CXXFLAGS += -Wno-c++0x-compat
250 }
251 }
252}
Note: See TracBrowser for help on using the repository browser.