Structure should have a StructureRareData field to save space
[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/$$activeBuildConfig()
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/JSValueRef.cpp \
46     API/JSWeakObjectMapRefPrivate.cpp \
47     API/OpaqueJSString.cpp \
48     assembler/ARMAssembler.cpp \
49     assembler/ARMv7Assembler.cpp \
50     assembler/LinkBuffer.cpp \
51     assembler/MacroAssembler.cpp \
52     assembler/MacroAssemblerARM.cpp \
53     assembler/MacroAssemblerSH4.cpp \
54     bytecode/ArrayAllocationProfile.cpp \
55     bytecode/ArrayProfile.cpp \
56     bytecode/CallLinkInfo.cpp \
57     bytecode/CallLinkStatus.cpp \
58     bytecode/CodeBlock.cpp \
59     bytecode/CodeBlockHash.cpp \
60     bytecode/CodeOrigin.cpp \
61     bytecode/CodeType.cpp \
62     bytecode/DFGExitProfile.cpp \
63     bytecode/ExecutionCounter.cpp \
64     bytecode/ExitKind.cpp \
65     bytecode/GetByIdStatus.cpp \
66     bytecode/JumpTable.cpp \
67     bytecode/LazyOperandValueProfile.cpp \
68     bytecode/MethodOfGettingAValueProfile.cpp \
69     bytecode/Opcode.cpp \
70     bytecode/PolymorphicPutByIdList.cpp \
71     bytecode/PutByIdStatus.cpp \
72     bytecode/ReduceWhitespace.cpp \
73     bytecode/ResolveGlobalStatus.cpp \
74     bytecode/SamplingTool.cpp \
75     bytecode/SpecialPointer.cpp \
76     bytecode/SpeculatedType.cpp \
77     bytecode/StructureStubClearingWatchpoint.cpp \
78     bytecode/StructureStubInfo.cpp \
79     bytecode/UnlinkedCodeBlock.cpp \
80     bytecode/Watchpoint.cpp \
81     bytecompiler/BytecodeGenerator.cpp \
82     bytecompiler/NodesCodegen.cpp \
83     heap/CopiedSpace.cpp \
84     heap/CopyVisitor.cpp \
85     heap/ConservativeRoots.cpp \
86     heap/DFGCodeBlocks.cpp \
87     heap/WeakSet.cpp \
88     heap/WeakHandleOwner.cpp \
89     heap/WeakBlock.cpp \
90     heap/HandleSet.cpp \
91     heap/HandleStack.cpp \
92     heap/BlockAllocator.cpp \
93     heap/GCThreadSharedData.cpp \
94     heap/GCThread.cpp \
95     heap/Heap.cpp \
96     heap/HeapStatistics.cpp \
97     heap/HeapTimer.cpp \
98     heap/IncrementalSweeper.cpp \
99     heap/JITStubRoutineSet.cpp \
100     heap/MachineStackMarker.cpp \
101     heap/MarkStack.cpp \
102     heap/MarkedAllocator.cpp \
103     heap/MarkedBlock.cpp \
104     heap/MarkedSpace.cpp \
105     heap/SlotVisitor.cpp \
106     heap/VTableSpectrum.cpp \
107     heap/WriteBarrierSupport.cpp \
108     debugger/DebuggerActivation.cpp \
109     debugger/DebuggerCallFrame.cpp \
110     debugger/Debugger.cpp \
111     dfg/DFGAbstractState.cpp \
112     dfg/DFGArgumentsSimplificationPhase.cpp \
113     dfg/DFGArrayMode.cpp \
114     dfg/DFGAssemblyHelpers.cpp \
115     dfg/DFGByteCodeParser.cpp \
116     dfg/DFGCapabilities.cpp \
117     dfg/DFGCommon.cpp \
118     dfg/DFGCFAPhase.cpp \
119     dfg/DFGCFGSimplificationPhase.cpp \
120     dfg/DFGConstantFoldingPhase.cpp \
121     dfg/DFGCSEPhase.cpp \
122     dfg/DFGDisassembler.cpp \
123     dfg/DFGDominators.cpp \
124     dfg/DFGDriver.cpp \
125     dfg/DFGEdge.cpp \
126     dfg/DFGFixupPhase.cpp \
127     dfg/DFGGraph.cpp \
128     dfg/DFGJITCompiler.cpp \
129     dfg/DFGLongLivedState.cpp \
130     dfg/DFGMinifiedNode.cpp \
131     dfg/DFGNode.cpp \
132     dfg/DFGNodeFlags.cpp \
133     dfg/DFGOperations.cpp \
134     dfg/DFGOSREntry.cpp \
135     dfg/DFGOSRExit.cpp \
136     dfg/DFGOSRExitCompiler.cpp \
137     dfg/DFGOSRExitCompiler64.cpp \
138     dfg/DFGOSRExitCompiler32_64.cpp \
139     dfg/DFGOSRExitJumpPlaceholder.cpp \
140     dfg/DFGPhase.cpp \
141     dfg/DFGPredictionPropagationPhase.cpp \
142     dfg/DFGRepatch.cpp \
143     dfg/DFGSpeculativeJIT.cpp \
144     dfg/DFGSpeculativeJIT32_64.cpp \
145     dfg/DFGSpeculativeJIT64.cpp \
146     dfg/DFGStructureCheckHoistingPhase.cpp \
147     dfg/DFGThunks.cpp \
148     dfg/DFGValueSource.cpp \
149     dfg/DFGVariableAccessDataDump.cpp \
150     dfg/DFGVariableEvent.cpp \
151     dfg/DFGVariableEventStream.cpp \
152     dfg/DFGValidate.cpp \
153     dfg/DFGVirtualRegisterAllocationPhase.cpp \
154     disassembler/Disassembler.cpp \
155     interpreter/AbstractPC.cpp \
156     interpreter/CallFrame.cpp \
157     interpreter/Interpreter.cpp \
158     interpreter/JSStack.cpp \
159     jit/ClosureCallStubRoutine.cpp \
160     jit/ExecutableAllocatorFixedVMPool.cpp \
161     jit/ExecutableAllocator.cpp \
162     jit/HostCallReturnValue.cpp \
163     jit/GCAwareJITStubRoutine.cpp \
164     jit/JITArithmetic.cpp \
165     jit/JITArithmetic32_64.cpp \
166     jit/JITCall.cpp \
167     jit/JITCall32_64.cpp \
168     jit/JITCode.cpp \
169     jit/JIT.cpp \
170     jit/JITDisassembler.cpp \
171     jit/JITExceptions.cpp \
172     jit/JITOpcodes.cpp \
173     jit/JITOpcodes32_64.cpp \
174     jit/JITPropertyAccess.cpp \
175     jit/JITPropertyAccess32_64.cpp \
176     jit/JITStubRoutine.cpp \
177     jit/JITStubs.cpp \
178     jit/JITThunks.cpp \
179     jit/JumpReplacementWatchpoint.cpp \
180     jit/ThunkGenerators.cpp \
181     llint/LLIntCLoop.cpp \
182     llint/LLIntData.cpp \
183     llint/LLIntEntrypoints.cpp \
184     llint/LLIntExceptions.cpp \
185     llint/LLIntSlowPaths.cpp \
186     llint/LLIntThunks.cpp \
187     llint/LowLevelInterpreter.cpp \
188     parser/Lexer.cpp \
189     parser/Nodes.cpp \
190     parser/ParserArena.cpp \
191     parser/Parser.cpp \
192     parser/SourceProviderCache.cpp \
193     profiler/ProfilerBytecode.cpp \
194     profiler/ProfilerBytecode.h \
195     profiler/ProfilerBytecodeSequence.cpp \
196     profiler/ProfilerBytecodes.cpp \
197     profiler/ProfilerBytecodes.h \
198     profiler/ProfilerCompilation.cpp \
199     profiler/ProfilerCompilation.h \
200     profiler/ProfilerCompilationKind.cpp \
201     profiler/ProfilerCompilationKind.h \
202     profiler/ProfilerCompiledBytecode.cpp \
203     profiler/ProfilerCompiledBytecode.h \
204     profiler/ProfilerDatabase.cpp \
205     profiler/ProfilerDatabase.h \
206     profiler/ProfilerExecutionCounter.h \
207     profiler/ProfilerOrigin.cpp \
208     profiler/ProfilerOrigin.h \
209     profiler/ProfilerOriginStack.cpp \
210     profiler/ProfilerOriginStack.h \
211     profiler/ProfilerOSRExit.cpp \
212     profiler/ProfilerOSRExitSite.cpp \
213     profiler/ProfilerProfiledBytecodes.cpp \
214     profiler/Profile.cpp \
215     profiler/ProfileGenerator.cpp \
216     profiler/ProfileNode.cpp \
217     profiler/LegacyProfiler.cpp \
218     runtime/ArgList.cpp \
219     runtime/Arguments.cpp \
220     runtime/ArrayConstructor.cpp \
221     runtime/ArrayPrototype.cpp \
222     runtime/BooleanConstructor.cpp \
223     runtime/BooleanObject.cpp \
224     runtime/BooleanPrototype.cpp \
225     runtime/CallData.cpp \
226     runtime/CodeCache.cpp \
227     runtime/CodeSpecializationKind.cpp \
228     runtime/CommonIdentifiers.cpp \
229     runtime/Completion.cpp \
230     runtime/ConstructData.cpp \
231     runtime/DateConstructor.cpp \
232     runtime/DateConversion.cpp \
233     runtime/DateInstance.cpp \
234     runtime/DatePrototype.cpp \
235     runtime/ErrorConstructor.cpp \
236     runtime/Error.cpp \
237     runtime/ErrorInstance.cpp \
238     runtime/ErrorPrototype.cpp \
239     runtime/ExceptionHelpers.cpp \
240     runtime/Executable.cpp \
241     runtime/FunctionConstructor.cpp \
242     runtime/FunctionExecutableDump.cpp \
243     runtime/FunctionPrototype.cpp \
244     runtime/GCActivityCallback.cpp \
245     runtime/GetterSetter.cpp \
246     runtime/Options.cpp \
247     runtime/Identifier.cpp \
248     runtime/IndexingType.cpp \
249     runtime/InitializeThreading.cpp \
250     runtime/InternalFunction.cpp \
251     runtime/JSActivation.cpp \
252     runtime/JSAPIValueWrapper.cpp \
253     runtime/JSArray.cpp \
254     runtime/JSCell.cpp \
255     runtime/JSDateMath.cpp \
256     runtime/JSFunction.cpp \
257     runtime/JSBoundFunction.cpp \
258     runtime/JSGlobalData.cpp \
259     runtime/JSGlobalObject.cpp \
260     runtime/JSGlobalObjectFunctions.cpp \
261     runtime/JSProxy.cpp \
262     runtime/JSLock.cpp \
263     runtime/JSNotAnObject.cpp \
264     runtime/JSObject.cpp \
265     runtime/JSONObject.cpp \
266     runtime/JSPropertyNameIterator.cpp \
267     runtime/JSSegmentedVariableObject.cpp \
268     runtime/JSWithScope.cpp \
269     runtime/JSNameScope.cpp \
270     runtime/JSScope.cpp \
271     runtime/JSString.cpp \
272     runtime/JSStringJoiner.cpp \
273     runtime/JSSymbolTableObject.cpp \
274     runtime/JSCJSValue.cpp \
275     runtime/JSVariableObject.cpp \
276     runtime/JSWrapperObject.cpp \
277     runtime/LiteralParser.cpp \
278     runtime/Lookup.cpp \
279     runtime/MathObject.cpp \
280     runtime/MemoryStatistics.cpp \
281     runtime/NameConstructor.cpp \
282     runtime/NameInstance.cpp \
283     runtime/NamePrototype.cpp \
284     runtime/NativeErrorConstructor.cpp \
285     runtime/NativeErrorPrototype.cpp \
286     runtime/NumberConstructor.cpp \
287     runtime/NumberObject.cpp \
288     runtime/NumberPrototype.cpp \
289     runtime/ObjectConstructor.cpp \
290     runtime/ObjectPrototype.cpp \
291     runtime/Operations.cpp \
292     runtime/PropertyDescriptor.cpp \
293     runtime/PropertyNameArray.cpp \
294     runtime/PropertySlot.cpp \
295     runtime/PrototypeMap.cpp \
296     runtime/RegExpConstructor.cpp \
297     runtime/RegExpCachedResult.cpp \
298     runtime/RegExpMatchesArray.cpp \
299     runtime/RegExp.cpp \
300     runtime/RegExpObject.cpp \
301     runtime/RegExpPrototype.cpp \
302     runtime/RegExpCache.cpp \
303     runtime/SamplingCounter.cpp \
304     runtime/SmallStrings.cpp \
305     runtime/SparseArrayValueMap.cpp \
306     runtime/StrictEvalActivation.cpp \
307     runtime/StringConstructor.cpp \
308     runtime/StringObject.cpp \
309     runtime/StringPrototype.cpp \
310     runtime/StringRecursionChecker.cpp \
311     runtime/StructureChain.cpp \
312     runtime/Structure.cpp \
313     runtime/StructureRareData.cpp \
314     runtime/SymbolTable.cpp \
315     runtime/TimeoutChecker.cpp \
316     tools/CodeProfile.cpp \
317     tools/CodeProfiling.cpp \
318     yarr/YarrJIT.cpp \
319
320 linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
321     SOURCES += \
322         disassembler/UDis86Disassembler.cpp \
323         disassembler/udis86/udis86.c \
324         disassembler/udis86/udis86_decode.c \
325         disassembler/udis86/udis86_input.c \
326         disassembler/udis86/udis86_itab_holder.c \
327         disassembler/udis86/udis86_syn-att.c \
328         disassembler/udis86/udis86_syn-intel.c \
329         disassembler/udis86/udis86_syn.c \
330 }
331
332 HEADERS += $$files(*.h, true)
333
334 *sh4* {
335     QMAKE_CXXFLAGS += -mieee -w
336     QMAKE_CFLAGS   += -mieee -w
337 }
338
339 lessThan(QT_GCC_MAJOR_VERSION, 5) {
340     # GCC 4.5 and before
341     lessThan(QT_GCC_MINOR_VERSION, 6) {
342         # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
343         *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
344     }
345 }