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
29 include(yarr/yarr.pri)
33 debug_and_release: INCLUDEPATH += $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR/$$targetSubDir()
37 API/JSCallbackConstructor.cpp \
38 API/JSCallbackFunction.cpp \
39 API/JSCallbackObject.cpp \
41 API/JSContextRef.cpp \
45 API/JSStringRefQt.cpp \
47 API/JSWeakObjectMapRefPrivate.cpp \
48 API/OpaqueJSString.cpp \
49 assembler/ARMAssembler.cpp \
50 assembler/ARMv7Assembler.cpp \
51 assembler/LinkBuffer.cpp \
52 assembler/MacroAssembler.cpp \
53 assembler/MacroAssemblerARM.cpp \
54 assembler/MacroAssemblerX86Common.cpp \
55 bytecode/ArrayAllocationProfile.cpp \
56 bytecode/ArrayProfile.cpp \
57 bytecode/CallLinkInfo.cpp \
58 bytecode/CallLinkStatus.cpp \
59 bytecode/CodeBlock.cpp \
60 bytecode/CodeBlockHash.cpp \
61 bytecode/CodeOrigin.cpp \
62 bytecode/CodeType.cpp \
63 bytecode/DFGExitProfile.cpp \
64 bytecode/ExecutionCounter.cpp \
65 bytecode/ExitKind.cpp \
66 bytecode/GetByIdStatus.cpp \
67 bytecode/JumpTable.cpp \
68 bytecode/LazyOperandValueProfile.cpp \
69 bytecode/MethodOfGettingAValueProfile.cpp \
71 bytecode/PolymorphicPutByIdList.cpp \
72 bytecode/PreciseJumpTargets.cpp \
73 bytecode/PutByIdStatus.cpp \
74 bytecode/ReduceWhitespace.cpp \
75 bytecode/SamplingTool.cpp \
76 bytecode/SpecialPointer.cpp \
77 bytecode/SpeculatedType.cpp \
78 bytecode/StructureStubClearingWatchpoint.cpp \
79 bytecode/StructureStubInfo.cpp \
80 bytecode/UnlinkedCodeBlock.cpp \
81 bytecode/Watchpoint.cpp \
82 bytecompiler/BytecodeGenerator.cpp \
83 bytecompiler/NodesCodegen.cpp \
84 heap/CopiedSpaceInlines.h \
85 heap/CopiedSpace.cpp \
86 heap/CopyVisitor.cpp \
87 heap/ConservativeRoots.cpp \
88 heap/DFGCodeBlocks.cpp \
91 heap/WeakHandleOwner.cpp \
94 heap/HandleStack.cpp \
95 heap/BlockAllocator.cpp \
96 heap/GCThreadSharedData.cpp \
99 heap/HeapStatistics.cpp \
101 heap/IncrementalSweeper.cpp \
102 heap/JITStubRoutineSet.cpp \
103 heap/MachineStackMarker.cpp \
105 heap/MarkedAllocator.cpp \
106 heap/MarkedBlock.cpp \
107 heap/MarkedSpace.cpp \
108 heap/SlotVisitor.cpp \
109 heap/SuperRegion.cpp \
110 heap/VTableSpectrum.cpp \
111 heap/WriteBarrierSupport.cpp \
112 debugger/DebuggerActivation.cpp \
113 debugger/DebuggerCallFrame.cpp \
114 debugger/Debugger.cpp \
115 dfg/DFGAbstractHeap.cpp \
116 dfg/DFGAbstractValue.cpp \
117 dfg/DFGArgumentsSimplificationPhase.cpp \
118 dfg/DFGArrayMode.cpp \
119 dfg/DFGAssemblyHelpers.cpp \
120 dfg/DFGAtTailAbstractState.cpp \
121 dfg/DFGBackwardsPropagationPhase.cpp \
122 dfg/DFGBasicBlock.cpp \
123 dfg/DFGBinarySwitch.cpp \
124 dfg/DFGBlockInsertionSet.cpp \
125 dfg/DFGByteCodeParser.cpp \
126 dfg/DFGCapabilities.cpp \
127 dfg/DFGClobberize.cpp \
128 dfg/DFGClobberSet.cpp \
130 dfg/DFGCommonData.cpp \
131 dfg/DFGCFAPhase.cpp \
132 dfg/DFGCFGSimplificationPhase.cpp \
133 dfg/DFGCPSRethreadingPhase.cpp \
134 dfg/DFGConstantFoldingPhase.cpp \
135 dfg/DFGCriticalEdgeBreakingPhase.cpp \
136 dfg/DFGCSEPhase.cpp \
137 dfg/DFGDCEPhase.cpp \
138 dfg/DFGDesiredIdentifiers.cpp \
139 dfg/DFGDesiredStructureChains.cpp \
140 dfg/DFGDesiredTransitions.cpp \
141 dfg/DFGDesiredWatchpoints.cpp \
142 dfg/DFGDesiredWeakReferences.cpp \
143 dfg/DFGDesiredWriteBarriers.cpp \
144 dfg/DFGDisassembler.cpp \
145 dfg/DFGDominators.cpp \
148 dfg/DFGFailedFinalizer.cpp \
149 dfg/DFGFinalizer.cpp \
150 dfg/DFGFixupPhase.cpp \
151 dfg/DFGFlushFormat.cpp \
152 dfg/DFGFlushLivenessAnalysisPhase.cpp \
154 dfg/DFGInPlaceAbstractState.cpp \
156 dfg/DFGJITCompiler.cpp \
157 dfg/DFGJITFinalizer.cpp \
158 dfg/DFGLICMPhase.cpp \
159 dfg/DFGLazyJSValue.cpp \
160 dfg/DFGLivenessAnalysisPhase.cpp \
161 dfg/DFGLongLivedState.cpp \
162 dfg/DFGLoopPreHeaderCreationPhase.cpp \
163 dfg/DFGMinifiedNode.cpp \
164 dfg/DFGNaturalLoops.cpp \
166 dfg/DFGNodeFlags.cpp \
167 dfg/DFGOperations.cpp \
168 dfg/DFGOSRAvailabilityAnalysisPhase.cpp \
169 dfg/DFGOSREntry.cpp \
171 dfg/DFGOSRExitBase.cpp \
172 dfg/DFGOSRExitCompiler.cpp \
173 dfg/DFGOSRExitCompiler64.cpp \
174 dfg/DFGOSRExitCompiler32_64.cpp \
175 dfg/DFGOSRExitCompilerCommon.cpp \
176 dfg/DFGOSRExitJumpPlaceholder.cpp \
177 dfg/DFGOSRExitPreparation.cpp \
180 dfg/DFGPredictionPropagationPhase.cpp \
181 dfg/DFGPredictionInjectionPhase.cpp \
183 dfg/DFGSSAConversionPhase.cpp \
184 dfg/DFGSpeculativeJIT.cpp \
185 dfg/DFGSpeculativeJIT32_64.cpp \
186 dfg/DFGSpeculativeJIT64.cpp \
187 dfg/DFGTypeCheckHoistingPhase.cpp \
189 dfg/DFGUnificationPhase.cpp \
191 dfg/DFGValueSource.cpp \
192 dfg/DFGVariableAccessDataDump.cpp \
193 dfg/DFGVariableEvent.cpp \
194 dfg/DFGVariableEventStream.cpp \
195 dfg/DFGValidate.cpp \
196 dfg/DFGVirtualRegisterAllocationPhase.cpp \
197 dfg/DFGWorklist.cpp \
198 disassembler/Disassembler.cpp \
199 interpreter/AbstractPC.cpp \
200 interpreter/CallFrame.cpp \
201 interpreter/Interpreter.cpp \
202 interpreter/JSStack.cpp \
203 interpreter/StackIterator.cpp \
204 jit/ClosureCallStubRoutine.cpp \
205 jit/ExecutableAllocatorFixedVMPool.cpp \
206 jit/ExecutableAllocator.cpp \
207 jit/HostCallReturnValue.cpp \
208 jit/GCAwareJITStubRoutine.cpp \
209 jit/JITArithmetic.cpp \
210 jit/JITArithmetic32_64.cpp \
212 jit/JITCall32_64.cpp \
215 jit/JITDisassembler.cpp \
216 jit/JITExceptions.cpp \
218 jit/JITOpcodes32_64.cpp \
219 jit/JITPropertyAccess.cpp \
220 jit/JITPropertyAccess32_64.cpp \
221 jit/JITStubRoutine.cpp \
224 jit/JumpReplacementWatchpoint.cpp \
225 jit/ThunkGenerators.cpp \
226 llint/LLIntCLoop.cpp \
227 llint/LLIntData.cpp \
228 llint/LLIntEntrypoints.cpp \
229 llint/LLIntExceptions.cpp \
230 llint/LLIntSlowPaths.cpp \
231 llint/LLIntThunks.cpp \
232 llint/LowLevelInterpreter.cpp \
235 parser/ParserArena.cpp \
237 parser/SourceCode.cpp \
238 parser/SourceProvider.cpp \
239 parser/SourceProviderCache.cpp \
240 profiler/ProfilerBytecode.cpp \
241 profiler/ProfilerBytecode.h \
242 profiler/ProfilerBytecodeSequence.cpp \
243 profiler/ProfilerBytecodes.cpp \
244 profiler/ProfilerBytecodes.h \
245 profiler/ProfilerCompilation.cpp \
246 profiler/ProfilerCompilation.h \
247 profiler/ProfilerCompilationKind.cpp \
248 profiler/ProfilerCompilationKind.h \
249 profiler/ProfilerCompiledBytecode.cpp \
250 profiler/ProfilerCompiledBytecode.h \
251 profiler/ProfilerDatabase.cpp \
252 profiler/ProfilerDatabase.h \
253 profiler/ProfilerExecutionCounter.h \
254 profiler/ProfilerOrigin.cpp \
255 profiler/ProfilerOrigin.h \
256 profiler/ProfilerOriginStack.cpp \
257 profiler/ProfilerOriginStack.h \
258 profiler/ProfilerOSRExit.cpp \
259 profiler/ProfilerOSRExitSite.cpp \
260 profiler/ProfilerProfiledBytecodes.cpp \
261 profiler/Profile.cpp \
262 profiler/ProfileGenerator.cpp \
263 profiler/ProfileNode.cpp \
264 profiler/LegacyProfiler.cpp \
265 runtime/ArgList.cpp \
266 runtime/Arguments.cpp \
267 runtime/ArrayBuffer.cpp \
268 runtime/ArrayBufferView.cpp \
269 runtime/ArrayConstructor.cpp \
270 runtime/ArrayPrototype.cpp \
271 runtime/BooleanConstructor.cpp \
272 runtime/BooleanObject.cpp \
273 runtime/BooleanPrototype.cpp \
274 runtime/CallData.cpp \
275 runtime/CodeCache.cpp \
276 runtime/CodeSpecializationKind.cpp \
277 runtime/CommonIdentifiers.cpp \
278 runtime/CommonSlowPaths.cpp \
279 runtime/CommonSlowPathsExceptions.cpp \
280 runtime/CompilationResult.cpp \
281 runtime/Completion.cpp \
282 runtime/ConstructData.cpp \
283 runtime/DataView.cpp \
284 runtime/DateConstructor.cpp \
285 runtime/DateConversion.cpp \
286 runtime/DateInstance.cpp \
287 runtime/DatePrototype.cpp \
288 runtime/DumpContext.cpp \
290 runtime/ErrorConstructor.cpp \
291 runtime/ErrorInstance.cpp \
292 runtime/ErrorPrototype.cpp \
293 runtime/ExceptionHelpers.cpp \
294 runtime/Executable.cpp \
295 runtime/FunctionConstructor.cpp \
296 runtime/FunctionExecutableDump.cpp \
297 runtime/FunctionPrototype.cpp \
298 runtime/GCActivityCallback.cpp \
299 runtime/GetterSetter.cpp \
300 runtime/Identifier.cpp \
301 runtime/IndexingType.cpp \
302 runtime/InitializeThreading.cpp \
303 runtime/IntendedStructureChain.cpp \
304 runtime/InternalFunction.cpp \
305 runtime/JSAPIValueWrapper.cpp \
306 runtime/JSActivation.cpp \
307 runtime/JSArray.cpp \
308 runtime/JSArrayBuffer.cpp \
309 runtime/JSArrayBufferConstructor.cpp \
310 runtime/JSArrayBufferPrototype.cpp \
311 runtime/JSArrayBufferView.cpp \
312 runtime/JSBoundFunction.cpp \
313 runtime/JSCJSValue.cpp \
315 runtime/JSDataView.cpp \
316 runtime/JSDataViewPrototype.cpp \
317 runtime/JSDateMath.cpp \
318 runtime/JSFunction.cpp \
319 runtime/JSGlobalObject.cpp \
320 runtime/JSGlobalObjectFunctions.cpp \
322 runtime/JSNameScope.cpp \
323 runtime/JSNotAnObject.cpp \
324 runtime/JSONObject.cpp \
325 runtime/JSObject.cpp \
326 runtime/JSPromise.cpp \
327 runtime/JSPromiseCallback.cpp \
328 runtime/JSPromiseConstructor.cpp \
329 runtime/JSPromisePrototype.cpp \
330 runtime/JSPromiseResolver.cpp \
331 runtime/JSPromiseResolverConstructor.cpp \
332 runtime/JSPromiseResolverPrototype.cpp \
333 runtime/JSPropertyNameIterator.cpp \
334 runtime/JSProxy.cpp \
335 runtime/JSScope.cpp \
336 runtime/JSSegmentedVariableObject.cpp \
337 runtime/JSString.cpp \
338 runtime/JSStringJoiner.cpp \
339 runtime/JSSymbolTableObject.cpp \
340 runtime/JSTypedArrayConstructors.cpp \
341 runtime/JSTypedArrayPrototypes.cpp \
342 runtime/JSTypedArrays.cpp \
343 runtime/JSVariableObject.cpp \
344 runtime/JSWithScope.cpp \
345 runtime/JSWrapperObject.cpp \
346 runtime/LiteralParser.cpp \
348 runtime/MathObject.cpp \
349 runtime/MemoryStatistics.cpp \
350 runtime/NameConstructor.cpp \
351 runtime/NameInstance.cpp \
352 runtime/NamePrototype.cpp \
353 runtime/NativeErrorConstructor.cpp \
354 runtime/NativeErrorPrototype.cpp \
355 runtime/NumberConstructor.cpp \
356 runtime/NumberObject.cpp \
357 runtime/NumberPrototype.cpp \
358 runtime/ObjectConstructor.cpp \
359 runtime/ObjectPrototype.cpp \
360 runtime/Operations.cpp \
361 runtime/Options.cpp \
362 runtime/PropertyDescriptor.cpp \
363 runtime/PropertyNameArray.cpp \
364 runtime/PropertySlot.cpp \
365 runtime/PropertyTable.cpp \
366 runtime/PrototypeMap.cpp \
368 runtime/RegExpCache.cpp \
369 runtime/RegExpCachedResult.cpp \
370 runtime/RegExpConstructor.cpp \
371 runtime/RegExpMatchesArray.cpp \
372 runtime/RegExpObject.cpp \
373 runtime/RegExpPrototype.cpp \
374 runtime/SamplingCounter.cpp \
375 runtime/SimpleTypedArrayController.cpp \
376 runtime/SmallStrings.cpp \
377 runtime/SparseArrayValueMap.cpp \
378 runtime/StrictEvalActivation.cpp \
379 runtime/StringConstructor.cpp \
380 runtime/StringObject.cpp \
381 runtime/StringPrototype.cpp \
382 runtime/StringRecursionChecker.cpp \
383 runtime/Structure.cpp \
384 runtime/StructureChain.cpp \
385 runtime/StructureRareData.cpp \
386 runtime/SymbolTable.cpp \
387 runtime/TypedArrayController.cpp \
388 runtime/TypedArrayType.cpp \
390 runtime/Watchdog.cpp \
391 runtime/WatchdogNone.cpp \
392 tools/CodeProfile.cpp \
393 tools/CodeProfiling.cpp \
396 linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
398 disassembler/X86Disassembler.cpp \
399 disassembler/UDis86Disassembler.cpp \
400 disassembler/udis86/udis86.c \
401 disassembler/udis86/udis86_decode.c \
402 disassembler/udis86/udis86_input.c \
403 disassembler/udis86/udis86_itab_holder.c \
404 disassembler/udis86/udis86_syn-att.c \
405 disassembler/udis86/udis86_syn-intel.c \
406 disassembler/udis86/udis86_syn.c \
409 win32:!win32-g++*:isEqual(QT_ARCH, "x86_64"):{
410 asm_compiler.commands = ml64 /c
411 asm_compiler.commands += /Fo ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
412 asm_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
413 asm_compiler.input = ASM_SOURCES
414 asm_compiler.variable_out = OBJECTS
415 asm_compiler.name = compiling[asm] ${QMAKE_FILE_IN}
416 silent:asm_compiler.commands = @echo compiling[asm] ${QMAKE_FILE_IN} && $$asm_compiler.commands
417 QMAKE_EXTRA_COMPILERS += asm_compiler
419 ASM_SOURCES += jit/JITStubsMSVC64.asm
422 build?(qttestsupport) {
423 HEADERS += API/JSCTestRunnerUtils.h
424 SOURCES += API/JSCTestRunnerUtils.cpp
427 HEADERS += $$files(*.h, true)
430 QMAKE_CXXFLAGS += -mieee -w
431 QMAKE_CFLAGS += -mieee -w