1 # -------------------------------------------------------------------
2 # Target file for the JavaScriptSource library
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
8 TARGET = JavaScriptCore
10 include(JavaScriptCore.pri)
18 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
19 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
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
30 SOURCES += $$QT.core.sources/../3rdparty/ce-compat/ce_time.c
33 include(yarr/yarr.pri)
39 API/JSCallbackConstructor.cpp \
40 API/JSCallbackFunction.cpp \
41 API/JSCallbackObject.cpp \
43 API/JSContextRef.cpp \
47 API/OpaqueJSString.cpp \
48 assembler/ARMAssembler.cpp \
49 assembler/ARMv7Assembler.cpp \
50 assembler/LinkBuffer.cpp \
51 assembler/MacroAssemblerARM.cpp \
52 assembler/MacroAssemblerSH4.cpp \
53 bytecode/CallLinkInfo.cpp \
54 bytecode/CallLinkStatus.cpp \
55 bytecode/CodeBlock.cpp \
56 bytecode/DFGExitProfile.cpp \
57 bytecode/ExecutionCounter.cpp \
58 bytecode/GetByIdStatus.cpp \
59 bytecode/JumpTable.cpp \
60 bytecode/LazyOperandValueProfile.cpp \
61 bytecode/MethodCallLinkInfo.cpp \
62 bytecode/MethodCallLinkStatus.cpp \
63 bytecode/MethodOfGettingAValueProfile.cpp \
65 bytecode/PolymorphicPutByIdList.cpp \
66 bytecode/PutByIdStatus.cpp \
67 bytecode/ResolveGlobalStatus.cpp \
68 bytecode/SamplingTool.cpp \
69 bytecode/SpeculatedType.cpp \
70 bytecode/StructureStubClearingWatchpoint.cpp \
71 bytecode/StructureStubInfo.cpp \
72 bytecode/Watchpoint.cpp \
73 bytecompiler/BytecodeGenerator.cpp \
74 bytecompiler/NodesCodegen.cpp \
75 heap/CopiedSpace.cpp \
76 heap/ConservativeRoots.cpp \
77 heap/DFGCodeBlocks.cpp \
79 heap/WeakHandleOwner.cpp \
82 heap/HandleStack.cpp \
83 heap/BlockAllocator.cpp \
86 heap/IncrementalSweeper.cpp \
87 heap/JITStubRoutineSet.cpp \
88 heap/MachineStackMarker.cpp \
90 heap/MarkedAllocator.cpp \
91 heap/MarkedBlock.cpp \
92 heap/MarkedSpace.cpp \
93 heap/VTableSpectrum.cpp \
94 heap/WriteBarrierSupport.cpp \
95 debugger/DebuggerActivation.cpp \
96 debugger/DebuggerCallFrame.cpp \
97 debugger/Debugger.cpp \
98 dfg/DFGAbstractState.cpp \
99 dfg/DFGArgumentsSimplificationPhase.cpp \
100 dfg/DFGAssemblyHelpers.cpp \
101 dfg/DFGByteCodeParser.cpp \
102 dfg/DFGCapabilities.cpp \
103 dfg/DFGCFAPhase.cpp \
104 dfg/DFGCFGSimplificationPhase.cpp \
105 dfg/DFGConstantFoldingPhase.cpp \
106 dfg/DFGCorrectableJumpPoint.cpp \
107 dfg/DFGCSEPhase.cpp \
108 dfg/DFGDisassembler.cpp \
109 dfg/DFGDominators.cpp \
111 dfg/DFGFixupPhase.cpp \
113 dfg/DFGJITCompiler.cpp \
114 dfg/DFGMinifiedNode.cpp \
115 dfg/DFGNodeFlags.cpp \
116 dfg/DFGOperations.cpp \
117 dfg/DFGOSREntry.cpp \
119 dfg/DFGOSRExitCompiler.cpp \
120 dfg/DFGOSRExitCompiler64.cpp \
121 dfg/DFGOSRExitCompiler32_64.cpp \
123 dfg/DFGPredictionPropagationPhase.cpp \
124 dfg/DFGRedundantPhiEliminationPhase.cpp \
126 dfg/DFGSpeculativeJIT.cpp \
127 dfg/DFGSpeculativeJIT32_64.cpp \
128 dfg/DFGSpeculativeJIT64.cpp \
129 dfg/DFGStructureCheckHoistingPhase.cpp \
131 dfg/DFGValueSource.cpp \
132 dfg/DFGVariableEvent.cpp \
133 dfg/DFGVariableEventStream.cpp \
134 dfg/DFGValidate.cpp \
135 dfg/DFGVirtualRegisterAllocationPhase.cpp \
136 interpreter/AbstractPC.cpp \
137 interpreter/CallFrame.cpp \
138 interpreter/Interpreter.cpp \
139 interpreter/RegisterFile.cpp \
140 jit/ExecutableAllocatorFixedVMPool.cpp \
141 jit/ExecutableAllocator.cpp \
142 jit/HostCallReturnValue.cpp \
143 jit/GCAwareJITStubRoutine.cpp \
144 jit/JITArithmetic.cpp \
145 jit/JITArithmetic32_64.cpp \
147 jit/JITCall32_64.cpp \
149 jit/JITExceptions.cpp \
151 jit/JITOpcodes32_64.cpp \
152 jit/JITPropertyAccess.cpp \
153 jit/JITPropertyAccess32_64.cpp \
154 jit/JITStubRoutine.cpp \
156 jit/JumpReplacementWatchpoint.cpp \
157 jit/ThunkGenerators.cpp \
160 parser/ParserArena.cpp \
162 parser/SourceProviderCache.cpp \
163 profiler/Profile.cpp \
164 profiler/ProfileGenerator.cpp \
165 profiler/ProfileNode.cpp \
166 profiler/Profiler.cpp \
167 runtime/ArgList.cpp \
168 runtime/Arguments.cpp \
169 runtime/ArrayConstructor.cpp \
170 runtime/ArrayPrototype.cpp \
171 runtime/BooleanConstructor.cpp \
172 runtime/BooleanObject.cpp \
173 runtime/BooleanPrototype.cpp \
174 runtime/CallData.cpp \
175 runtime/CommonIdentifiers.cpp \
176 runtime/Completion.cpp \
177 runtime/ConstructData.cpp \
178 runtime/DateConstructor.cpp \
179 runtime/DateConversion.cpp \
180 runtime/DateInstance.cpp \
181 runtime/DatePrototype.cpp \
182 runtime/ErrorConstructor.cpp \
184 runtime/ErrorInstance.cpp \
185 runtime/ErrorPrototype.cpp \
186 runtime/ExceptionHelpers.cpp \
187 runtime/Executable.cpp \
188 runtime/FunctionConstructor.cpp \
189 runtime/FunctionPrototype.cpp \
190 runtime/GCActivityCallback.cpp \
191 runtime/GetterSetter.cpp \
192 runtime/Options.cpp \
193 runtime/Identifier.cpp \
194 runtime/InitializeThreading.cpp \
195 runtime/InternalFunction.cpp \
196 runtime/JSActivation.cpp \
197 runtime/JSAPIValueWrapper.cpp \
198 runtime/JSArray.cpp \
200 runtime/JSDateMath.cpp \
201 runtime/JSFunction.cpp \
202 runtime/JSBoundFunction.cpp \
203 runtime/JSGlobalData.cpp \
204 runtime/JSGlobalObject.cpp \
205 runtime/JSGlobalObjectFunctions.cpp \
206 runtime/JSGlobalThis.cpp \
208 runtime/JSNotAnObject.cpp \
209 runtime/JSObject.cpp \
210 runtime/JSONObject.cpp \
211 runtime/JSPropertyNameIterator.cpp \
212 runtime/JSSegmentedVariableObject.cpp \
213 runtime/JSStaticScopeObject.cpp \
214 runtime/JSString.cpp \
215 runtime/JSStringJoiner.cpp \
216 runtime/JSSymbolTableObject.cpp \
217 runtime/JSValue.cpp \
218 runtime/JSVariableObject.cpp \
219 runtime/JSWrapperObject.cpp \
220 runtime/LiteralParser.cpp \
222 runtime/MathObject.cpp \
223 runtime/MemoryStatistics.cpp \
224 runtime/NameConstructor.cpp \
225 runtime/NameInstance.cpp \
226 runtime/NamePrototype.cpp \
227 runtime/NativeErrorConstructor.cpp \
228 runtime/NativeErrorPrototype.cpp \
229 runtime/NumberConstructor.cpp \
230 runtime/NumberObject.cpp \
231 runtime/NumberPrototype.cpp \
232 runtime/ObjectConstructor.cpp \
233 runtime/ObjectPrototype.cpp \
234 runtime/Operations.cpp \
235 runtime/PropertyDescriptor.cpp \
236 runtime/PropertyNameArray.cpp \
237 runtime/PropertySlot.cpp \
238 runtime/RegExpConstructor.cpp \
239 runtime/RegExpCachedResult.cpp \
240 runtime/RegExpMatchesArray.cpp \
242 runtime/RegExpObject.cpp \
243 runtime/RegExpPrototype.cpp \
244 runtime/RegExpCache.cpp \
245 runtime/SamplingCounter.cpp \
246 runtime/ScopeChain.cpp \
247 runtime/SmallStrings.cpp \
248 runtime/StrictEvalActivation.cpp \
249 runtime/StringConstructor.cpp \
250 runtime/StringObject.cpp \
251 runtime/StringPrototype.cpp \
252 runtime/StringRecursionChecker.cpp \
253 runtime/StructureChain.cpp \
254 runtime/Structure.cpp \
255 runtime/SymbolTable.cpp \
256 runtime/TimeoutChecker.cpp \
257 runtime/UString.cpp \
258 tools/CodeProfile.cpp \
259 tools/CodeProfiling.cpp \
262 HEADERS += $$files(*.h, true)
265 QMAKE_CXXFLAGS += -mieee -w
266 QMAKE_CFLAGS += -mieee -w
269 lessThan(QT_GCC_MAJOR_VERSION, 5) {
271 lessThan(QT_GCC_MINOR_VERSION, 6) {
272 # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
273 *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x