CodeBlock::prepareForExecution() is silly
[WebKit-https.git] / Source / JavaScriptCore / Target.pri
1 # -------------------------------------------------------------------
2 # Target file for the JavaScriptSource library
3 #
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
6
7 TEMPLATE = lib
8 TARGET = JavaScriptCore
9
10 include(JavaScriptCore.pri)
11
12 WEBKIT += wtf
13 QT += core
14 QT -= gui
15
16 CONFIG += 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
29 include(yarr/yarr.pri)
30
31 INSTALLDEPS += all
32
33 debug_and_release: INCLUDEPATH += $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR/$$targetSubDir()
34
35 SOURCES += \
36     API/JSBase.cpp \
37     API/JSCallbackConstructor.cpp \
38     API/JSCallbackFunction.cpp \
39     API/JSCallbackObject.cpp \
40     API/JSClassRef.cpp \
41     API/JSContextRef.cpp \
42     API/JSObjectRef.cpp \
43     API/JSScriptRef.cpp \
44     API/JSStringRef.cpp \
45     API/JSStringRefQt.cpp \
46     API/JSValueRef.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/DeferredCompilationCallback.cpp \
65     bytecode/ExecutionCounter.cpp \
66     bytecode/ExitKind.cpp \
67     bytecode/GetByIdStatus.cpp \
68     bytecode/JumpTable.cpp \
69     bytecode/LazyOperandValueProfile.cpp \
70     bytecode/MethodOfGettingAValueProfile.cpp \
71     bytecode/Opcode.cpp \
72     bytecode/PolymorphicPutByIdList.cpp \
73     bytecode/PreciseJumpTargets.cpp \
74     bytecode/PutByIdStatus.cpp \
75     bytecode/ReduceWhitespace.cpp \
76     bytecode/SamplingTool.cpp \
77     bytecode/SpecialPointer.cpp \
78     bytecode/SpeculatedType.cpp \
79     bytecode/StructureStubClearingWatchpoint.cpp \
80     bytecode/StructureStubInfo.cpp \
81     bytecode/UnlinkedCodeBlock.cpp \
82     bytecode/Watchpoint.cpp \
83     bytecompiler/BytecodeGenerator.cpp \
84     bytecompiler/NodesCodegen.cpp \
85     heap/CopiedSpaceInlines.h \
86     heap/CopiedSpace.cpp \
87     heap/CopyVisitor.cpp \
88     heap/ConservativeRoots.cpp \
89     heap/DFGCodeBlocks.cpp \
90     heap/Weak.cpp \
91     heap/WeakBlock.cpp \
92     heap/WeakHandleOwner.cpp \
93     heap/WeakSet.cpp \
94     heap/HandleSet.cpp \
95     heap/HandleStack.cpp \
96     heap/BlockAllocator.cpp \
97     heap/GCThreadSharedData.cpp \
98     heap/GCThread.cpp \
99     heap/Heap.cpp \
100     heap/HeapStatistics.cpp \
101     heap/HeapTimer.cpp \
102     heap/IncrementalSweeper.cpp \
103     heap/JITStubRoutineSet.cpp \
104     heap/MachineStackMarker.cpp \
105     heap/MarkStack.cpp \
106     heap/MarkedAllocator.cpp \
107     heap/MarkedBlock.cpp \
108     heap/MarkedSpace.cpp \
109     heap/SlotVisitor.cpp \
110     heap/SuperRegion.cpp \
111     heap/VTableSpectrum.cpp \
112     heap/WriteBarrierSupport.cpp \
113     debugger/DebuggerActivation.cpp \
114     debugger/DebuggerCallFrame.cpp \
115     debugger/Debugger.cpp \
116     dfg/DFGAbstractHeap.cpp \
117     dfg/DFGAbstractValue.cpp \
118     dfg/DFGArgumentsSimplificationPhase.cpp \
119     dfg/DFGArrayMode.cpp \
120     dfg/DFGAssemblyHelpers.cpp \
121     dfg/DFGAtTailAbstractState.cpp \
122     dfg/DFGBackwardsPropagationPhase.cpp \
123     dfg/DFGBasicBlock.cpp \
124     dfg/DFGBinarySwitch.cpp \
125     dfg/DFGBlockInsertionSet.cpp \
126     dfg/DFGByteCodeParser.cpp \
127     dfg/DFGCapabilities.cpp \
128     dfg/DFGClobberize.cpp \
129     dfg/DFGClobberSet.cpp \
130     dfg/DFGCommon.cpp \
131     dfg/DFGCommonData.cpp \
132     dfg/DFGCFAPhase.cpp \
133     dfg/DFGCFGSimplificationPhase.cpp \
134     dfg/DFGCPSRethreadingPhase.cpp \
135     dfg/DFGConstantFoldingPhase.cpp \
136     dfg/DFGCriticalEdgeBreakingPhase.cpp \
137     dfg/DFGCSEPhase.cpp \
138     dfg/DFGDCEPhase.cpp \
139     dfg/DFGDesiredIdentifiers.cpp \
140     dfg/DFGDesiredStructureChains.cpp \
141     dfg/DFGDesiredTransitions.cpp \
142     dfg/DFGDesiredWatchpoints.cpp \
143     dfg/DFGDesiredWeakReferences.cpp \
144     dfg/DFGDesiredWriteBarriers.cpp \
145     dfg/DFGDisassembler.cpp \
146     dfg/DFGDominators.cpp \
147     dfg/DFGDriver.cpp \
148     dfg/DFGEdge.cpp \
149     dfg/DFGFailedFinalizer.cpp \
150     dfg/DFGFinalizer.cpp \
151     dfg/DFGFixupPhase.cpp \
152     dfg/DFGFlushFormat.cpp \
153     dfg/DFGFlushLivenessAnalysisPhase.cpp \
154     dfg/DFGGraph.cpp \
155     dfg/DFGInPlaceAbstractState.cpp \
156     dfg/DFGJITCode.cpp \
157     dfg/DFGJITCompiler.cpp \
158     dfg/DFGJITFinalizer.cpp \
159     dfg/DFGLICMPhase.cpp \
160     dfg/DFGLazyJSValue.cpp \
161     dfg/DFGLivenessAnalysisPhase.cpp \
162     dfg/DFGLongLivedState.cpp \
163     dfg/DFGLoopPreHeaderCreationPhase.cpp \
164     dfg/DFGMinifiedNode.cpp \
165     dfg/DFGNaturalLoops.cpp \
166     dfg/DFGNode.cpp \
167     dfg/DFGNodeFlags.cpp \
168     dfg/DFGOperations.cpp \
169     dfg/DFGOSRAvailabilityAnalysisPhase.cpp \
170     dfg/DFGOSREntry.cpp \
171     dfg/DFGOSRExit.cpp \
172     dfg/DFGOSRExitBase.cpp \
173     dfg/DFGOSRExitCompiler.cpp \
174     dfg/DFGOSRExitCompiler64.cpp \
175     dfg/DFGOSRExitCompiler32_64.cpp \
176     dfg/DFGOSRExitCompilerCommon.cpp \
177     dfg/DFGOSRExitJumpPlaceholder.cpp \
178     dfg/DFGOSRExitPreparation.cpp \
179     dfg/DFGPhase.cpp \
180     dfg/DFGPlan.cpp \
181     dfg/DFGPredictionPropagationPhase.cpp \
182     dfg/DFGPredictionInjectionPhase.cpp \
183     dfg/DFGRepatch.cpp \
184     dfg/DFGSSAConversionPhase.cpp \
185     dfg/DFGSpeculativeJIT.cpp \
186     dfg/DFGSpeculativeJIT32_64.cpp \
187     dfg/DFGSpeculativeJIT64.cpp \
188     dfg/DFGTypeCheckHoistingPhase.cpp \
189     dfg/DFGThunks.cpp \
190     dfg/DFGUnificationPhase.cpp \
191     dfg/DFGUseKind.cpp \
192     dfg/DFGValueSource.cpp \
193     dfg/DFGVariableAccessDataDump.cpp \
194     dfg/DFGVariableEvent.cpp \
195     dfg/DFGVariableEventStream.cpp \
196     dfg/DFGValidate.cpp \
197     dfg/DFGVirtualRegisterAllocationPhase.cpp \
198     dfg/DFGWorklist.cpp \
199     disassembler/Disassembler.cpp \
200     interpreter/AbstractPC.cpp \
201     interpreter/CallFrame.cpp \
202     interpreter/Interpreter.cpp \
203     interpreter/JSStack.cpp \
204     interpreter/StackIterator.cpp \
205     jit/ClosureCallStubRoutine.cpp \
206     jit/ExecutableAllocatorFixedVMPool.cpp \
207     jit/ExecutableAllocator.cpp \
208     jit/HostCallReturnValue.cpp \
209     jit/GCAwareJITStubRoutine.cpp \
210     jit/JITArithmetic.cpp \
211     jit/JITArithmetic32_64.cpp \
212     jit/JITCall.cpp \
213     jit/JITCall32_64.cpp \
214     jit/JITCode.cpp \
215     jit/JIT.cpp \
216     jit/JITDisassembler.cpp \
217     jit/JITExceptions.cpp \
218     jit/JITOpcodes.cpp \
219     jit/JITOpcodes32_64.cpp \
220     jit/JITPropertyAccess.cpp \
221     jit/JITPropertyAccess32_64.cpp \
222     jit/JITStubRoutine.cpp \
223     jit/JITStubs.cpp \
224     jit/JITThunks.cpp \
225     jit/JITToDFGDeferredCompilationCallback.cpp \
226     jit/JumpReplacementWatchpoint.cpp \
227     jit/ThunkGenerators.cpp \
228     llint/LLIntCLoop.cpp \
229     llint/LLIntData.cpp \
230     llint/LLIntEntrypoint.cpp \
231     llint/LLIntExceptions.cpp \
232     llint/LLIntSlowPaths.cpp \
233     llint/LLIntThunks.cpp \
234     llint/LowLevelInterpreter.cpp \
235     parser/Lexer.cpp \
236     parser/Nodes.cpp \
237     parser/ParserArena.cpp \
238     parser/Parser.cpp \
239     parser/SourceCode.cpp \
240     parser/SourceProvider.cpp \
241     parser/SourceProviderCache.cpp \
242     profiler/ProfilerBytecode.cpp \
243     profiler/ProfilerBytecode.h \
244     profiler/ProfilerBytecodeSequence.cpp \
245     profiler/ProfilerBytecodes.cpp \
246     profiler/ProfilerBytecodes.h \
247     profiler/ProfilerCompilation.cpp \
248     profiler/ProfilerCompilation.h \
249     profiler/ProfilerCompilationKind.cpp \
250     profiler/ProfilerCompilationKind.h \
251     profiler/ProfilerCompiledBytecode.cpp \
252     profiler/ProfilerCompiledBytecode.h \
253     profiler/ProfilerDatabase.cpp \
254     profiler/ProfilerDatabase.h \
255     profiler/ProfilerExecutionCounter.h \
256     profiler/ProfilerOrigin.cpp \
257     profiler/ProfilerOrigin.h \
258     profiler/ProfilerOriginStack.cpp \
259     profiler/ProfilerOriginStack.h \
260     profiler/ProfilerOSRExit.cpp \
261     profiler/ProfilerOSRExitSite.cpp \
262     profiler/ProfilerProfiledBytecodes.cpp \
263     profiler/Profile.cpp \
264     profiler/ProfileGenerator.cpp \
265     profiler/ProfileNode.cpp \
266     profiler/LegacyProfiler.cpp \
267     runtime/ArgList.cpp \
268     runtime/Arguments.cpp \
269     runtime/ArrayBuffer.cpp \
270     runtime/ArrayBufferView.cpp \
271     runtime/ArrayConstructor.cpp \
272     runtime/ArrayPrototype.cpp \
273     runtime/BooleanConstructor.cpp \
274     runtime/BooleanObject.cpp \
275     runtime/BooleanPrototype.cpp \
276     runtime/CallData.cpp \
277     runtime/CodeCache.cpp \
278     runtime/CodeSpecializationKind.cpp \
279     runtime/CommonIdentifiers.cpp \
280     runtime/CommonSlowPaths.cpp \
281     runtime/CommonSlowPathsExceptions.cpp \
282     runtime/CompilationResult.cpp \
283     runtime/Completion.cpp \
284     runtime/ConstructData.cpp \
285     runtime/DataView.cpp \
286     runtime/DateConstructor.cpp \
287     runtime/DateConversion.cpp \
288     runtime/DateInstance.cpp \
289     runtime/DatePrototype.cpp \
290     runtime/DumpContext.cpp \
291     runtime/Error.cpp \
292     runtime/ErrorConstructor.cpp \
293     runtime/ErrorInstance.cpp \
294     runtime/ErrorPrototype.cpp \
295     runtime/ExceptionHelpers.cpp \
296     runtime/Executable.cpp \
297     runtime/FunctionConstructor.cpp \
298     runtime/FunctionExecutableDump.cpp \
299     runtime/FunctionPrototype.cpp \
300     runtime/GCActivityCallback.cpp \
301     runtime/GetterSetter.cpp \
302     runtime/Identifier.cpp \
303     runtime/IndexingType.cpp \
304     runtime/InitializeThreading.cpp \
305     runtime/IntendedStructureChain.cpp \
306     runtime/InternalFunction.cpp \
307     runtime/JSAPIValueWrapper.cpp \
308     runtime/JSActivation.cpp \
309     runtime/JSArray.cpp \
310     runtime/JSArrayBuffer.cpp \
311     runtime/JSArrayBufferConstructor.cpp \
312     runtime/JSArrayBufferPrototype.cpp \
313     runtime/JSArrayBufferView.cpp \
314     runtime/JSBoundFunction.cpp \
315     runtime/JSCJSValue.cpp \
316     runtime/JSCell.cpp \
317     runtime/JSDataView.cpp \
318     runtime/JSDataViewPrototype.cpp \
319     runtime/JSDateMath.cpp \
320     runtime/JSFunction.cpp \
321     runtime/JSGlobalObject.cpp \
322     runtime/JSGlobalObjectFunctions.cpp \
323     runtime/JSLock.cpp \
324     runtime/JSNameScope.cpp \
325     runtime/JSNotAnObject.cpp \
326     runtime/JSONObject.cpp \
327     runtime/JSObject.cpp \
328     runtime/JSPromise.cpp \
329     runtime/JSPromiseCallback.cpp \
330     runtime/JSPromiseConstructor.cpp \
331     runtime/JSPromisePrototype.cpp \
332     runtime/JSPromiseResolver.cpp \
333     runtime/JSPromiseResolverConstructor.cpp \
334     runtime/JSPromiseResolverPrototype.cpp \
335     runtime/JSPropertyNameIterator.cpp \
336     runtime/JSProxy.cpp \
337     runtime/JSScope.cpp \
338     runtime/JSSegmentedVariableObject.cpp \
339     runtime/JSString.cpp \
340     runtime/JSStringJoiner.cpp \
341     runtime/JSSymbolTableObject.cpp \
342     runtime/JSTypedArrayConstructors.cpp \
343     runtime/JSTypedArrayPrototypes.cpp \
344     runtime/JSTypedArrays.cpp \
345     runtime/JSVariableObject.cpp \
346     runtime/JSWithScope.cpp \
347     runtime/JSWrapperObject.cpp \
348     runtime/LiteralParser.cpp \
349     runtime/Lookup.cpp \
350     runtime/MathObject.cpp \
351     runtime/MemoryStatistics.cpp \
352     runtime/NameConstructor.cpp \
353     runtime/NameInstance.cpp \
354     runtime/NamePrototype.cpp \
355     runtime/NativeErrorConstructor.cpp \
356     runtime/NativeErrorPrototype.cpp \
357     runtime/NumberConstructor.cpp \
358     runtime/NumberObject.cpp \
359     runtime/NumberPrototype.cpp \
360     runtime/ObjectConstructor.cpp \
361     runtime/ObjectPrototype.cpp \
362     runtime/Operations.cpp \
363     runtime/Options.cpp \
364     runtime/PropertyDescriptor.cpp \
365     runtime/PropertyNameArray.cpp \
366     runtime/PropertySlot.cpp \
367     runtime/PropertyTable.cpp \
368     runtime/PrototypeMap.cpp \
369     runtime/RegExp.cpp \
370     runtime/RegExpCache.cpp \
371     runtime/RegExpCachedResult.cpp \
372     runtime/RegExpConstructor.cpp \
373     runtime/RegExpMatchesArray.cpp \
374     runtime/RegExpObject.cpp \
375     runtime/RegExpPrototype.cpp \
376     runtime/SamplingCounter.cpp \
377     runtime/SimpleTypedArrayController.cpp \
378     runtime/SmallStrings.cpp \
379     runtime/SparseArrayValueMap.cpp \
380     runtime/StrictEvalActivation.cpp \
381     runtime/StringConstructor.cpp \
382     runtime/StringObject.cpp \
383     runtime/StringPrototype.cpp \
384     runtime/StringRecursionChecker.cpp \
385     runtime/Structure.cpp \
386     runtime/StructureChain.cpp \
387     runtime/StructureRareData.cpp \
388     runtime/SymbolTable.cpp \
389     runtime/TypedArrayController.cpp \
390     runtime/TypedArrayType.cpp \
391     runtime/VM.cpp \
392     runtime/Watchdog.cpp \
393     runtime/WatchdogNone.cpp \
394     tools/CodeProfile.cpp \
395     tools/CodeProfiling.cpp \
396     yarr/YarrJIT.cpp \
397
398 linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
399     SOURCES += \
400         disassembler/X86Disassembler.cpp \
401         disassembler/UDis86Disassembler.cpp \
402         disassembler/udis86/udis86.c \
403         disassembler/udis86/udis86_decode.c \
404         disassembler/udis86/udis86_input.c \
405         disassembler/udis86/udis86_itab_holder.c \
406         disassembler/udis86/udis86_syn-att.c \
407         disassembler/udis86/udis86_syn-intel.c \
408         disassembler/udis86/udis86_syn.c \
409 }
410
411 win32:!win32-g++*:isEqual(QT_ARCH, "x86_64"):{
412     asm_compiler.commands = ml64 /c
413     asm_compiler.commands +=  /Fo ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
414     asm_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
415     asm_compiler.input = ASM_SOURCES
416     asm_compiler.variable_out = OBJECTS
417     asm_compiler.name = compiling[asm] ${QMAKE_FILE_IN}
418     silent:asm_compiler.commands = @echo compiling[asm] ${QMAKE_FILE_IN} && $$asm_compiler.commands
419     QMAKE_EXTRA_COMPILERS += asm_compiler
420
421     ASM_SOURCES += jit/JITStubsMSVC64.asm
422 }
423
424 build?(qttestsupport) {
425     HEADERS += API/JSCTestRunnerUtils.h
426     SOURCES += API/JSCTestRunnerUtils.cpp
427 }
428
429 HEADERS += $$files(*.h, true)
430
431 *sh4* {
432     QMAKE_CXXFLAGS += -mieee -w
433     QMAKE_CFLAGS   += -mieee -w
434 }