Target.pri 14.2 KB
Newer Older
1 2 3 4 5 6 7
# -------------------------------------------------------------------
# Target file for the JavaScriptSource library
#
# See 'Tools/qmake/README' for an overview of the build system
# -------------------------------------------------------------------

TEMPLATE = lib
8
TARGET = JavaScriptCore
9

10
include(JavaScriptCore.pri)
11

12
WEBKIT += wtf
13 14 15
QT += core
QT -= gui

16 17
CONFIG += staticlib

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
*-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
*-g++*:QMAKE_CXXFLAGS_RELEASE += -O3

# Rules when JIT enabled (not disabled)
!contains(DEFINES, ENABLE_JIT=0) {
    linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
        QMAKE_CXXFLAGS += -fno-stack-protector
        QMAKE_CFLAGS += -fno-stack-protector
    }
}

include(yarr/yarr.pri)

INSTALLDEPS += all

33
debug_and_release: INCLUDEPATH += $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR/$$targetSubDir()
34

35 36 37 38 39 40 41 42
SOURCES += \
    API/JSBase.cpp \
    API/JSCallbackConstructor.cpp \
    API/JSCallbackFunction.cpp \
    API/JSCallbackObject.cpp \
    API/JSClassRef.cpp \
    API/JSContextRef.cpp \
    API/JSObjectRef.cpp \
43
    API/JSScriptRef.cpp \
44
    API/JSStringRef.cpp \
45
    API/JSStringRefQt.cpp \
46
    API/JSValueRef.cpp \
47
    API/JSWeakObjectMapRefPrivate.cpp \
48 49 50
    API/OpaqueJSString.cpp \
    assembler/ARMAssembler.cpp \
    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 61 62
    bytecode/CodeBlockHash.cpp \
    bytecode/CodeOrigin.cpp \
    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 70
    bytecode/LazyOperandValueProfile.cpp \
    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 84
    bytecompiler/BytecodeGenerator.cpp \
    bytecompiler/NodesCodegen.cpp \
85
    heap/CodeBlockSet.cpp \
86
    heap/CopiedSpaceInlines.h \
mhahnenberg@apple.com's avatar
mhahnenberg@apple.com committed
87
    heap/CopiedSpace.cpp \
88
    heap/CopyVisitor.cpp \
89
    heap/ConservativeRoots.cpp \
90
    heap/Weak.cpp \
91
    heap/WeakBlock.cpp \
92 93
    heap/WeakHandleOwner.cpp \
    heap/WeakSet.cpp \
ggaren@apple.com's avatar
Renamed  
ggaren@apple.com committed
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 105
    heap/MachineStackMarker.cpp \
    heap/MarkStack.cpp \
106
    heap/MarkedAllocator.cpp \
107 108
    heap/MarkedBlock.cpp \
    heap/MarkedSpace.cpp \
109
    heap/SlotVisitor.cpp \
110
    heap/SuperRegion.cpp \
111 112 113 114 115
    heap/VTableSpectrum.cpp \
    heap/WriteBarrierSupport.cpp \
    debugger/DebuggerActivation.cpp \
    debugger/DebuggerCallFrame.cpp \
    debugger/Debugger.cpp \
116 117
    dfg/DFGAbstractHeap.cpp \
    dfg/DFGAbstractValue.cpp \
118
    dfg/DFGArgumentsSimplificationPhase.cpp \
119
    dfg/DFGArrayMode.cpp \
120
    dfg/DFGAssemblyHelpers.cpp \
121
    dfg/DFGAtTailAbstractState.cpp \
122
    dfg/DFGBackwardsPropagationPhase.cpp \
123 124 125
    dfg/DFGBasicBlock.cpp \
    dfg/DFGBinarySwitch.cpp \
    dfg/DFGBlockInsertionSet.cpp \
126 127
    dfg/DFGByteCodeParser.cpp \
    dfg/DFGCapabilities.cpp \
128 129
    dfg/DFGClobberize.cpp \
    dfg/DFGClobberSet.cpp \
130
    dfg/DFGCommon.cpp \
131
    dfg/DFGCommonData.cpp \
132 133
    dfg/DFGCompilationKey.cpp \
    dfg/DFGCompilationMode.cpp \
134
    dfg/DFGCFAPhase.cpp \
135
    dfg/DFGCFGSimplificationPhase.cpp \
136
    dfg/DFGCPSRethreadingPhase.cpp \
137
    dfg/DFGConstantFoldingPhase.cpp \
138
    dfg/DFGCriticalEdgeBreakingPhase.cpp \
139
    dfg/DFGCSEPhase.cpp \
140
    dfg/DFGDCEPhase.cpp \
141 142
    dfg/DFGDesiredIdentifiers.cpp \
    dfg/DFGDesiredStructureChains.cpp \
143
    dfg/DFGDesiredTransitions.cpp \
144
    dfg/DFGDesiredWatchpoints.cpp \
145 146
    dfg/DFGDesiredWeakReferences.cpp \
    dfg/DFGDesiredWriteBarriers.cpp \
147
    dfg/DFGDisassembler.cpp \
148
    dfg/DFGDominators.cpp \
149
    dfg/DFGDriver.cpp \
150
    dfg/DFGEdge.cpp \
151 152
    dfg/DFGFailedFinalizer.cpp \
    dfg/DFGFinalizer.cpp \
153
    dfg/DFGFixupPhase.cpp \
154
    dfg/DFGFlushFormat.cpp \
zandobersek@gmail.com's avatar
zandobersek@gmail.com committed
155
    dfg/DFGFlushLivenessAnalysisPhase.cpp \
156
    dfg/DFGGraph.cpp \
157
    dfg/DFGInPlaceAbstractState.cpp \
158
    dfg/DFGJITCode.cpp \
159
    dfg/DFGJITCompiler.cpp \
160 161 162 163
    dfg/DFGJITFinalizer.cpp \
    dfg/DFGLICMPhase.cpp \
    dfg/DFGLazyJSValue.cpp \
    dfg/DFGLivenessAnalysisPhase.cpp \
164
    dfg/DFGLongLivedState.cpp \
165
    dfg/DFGLoopPreHeaderCreationPhase.cpp \
166
    dfg/DFGMinifiedNode.cpp \
167
    dfg/DFGNaturalLoops.cpp \
168
    dfg/DFGNode.cpp \
169
    dfg/DFGNodeFlags.cpp \
170
    dfg/DFGOperations.cpp \
171
    dfg/DFGOSRAvailabilityAnalysisPhase.cpp \
172
    dfg/DFGOSREntry.cpp \
173
    dfg/DFGOSREntrypointCreationPhase.cpp \
174
    dfg/DFGOSRExit.cpp \
175
    dfg/DFGOSRExitBase.cpp \
176
    dfg/DFGOSRExitCompiler.cpp \
177 178
    dfg/DFGOSRExitCompiler64.cpp \
    dfg/DFGOSRExitCompiler32_64.cpp \
179
    dfg/DFGOSRExitCompilerCommon.cpp \
180
    dfg/DFGOSRExitJumpPlaceholder.cpp \
181
    dfg/DFGOSRExitPreparation.cpp \
182
    dfg/DFGPhase.cpp \
183
    dfg/DFGPlan.cpp \
184
    dfg/DFGPredictionPropagationPhase.cpp \
185
    dfg/DFGPredictionInjectionPhase.cpp \
186
    dfg/DFGRepatch.cpp \
zandobersek@gmail.com's avatar
zandobersek@gmail.com committed
187
    dfg/DFGSSAConversionPhase.cpp \
188 189 190
    dfg/DFGSpeculativeJIT.cpp \
    dfg/DFGSpeculativeJIT32_64.cpp \
    dfg/DFGSpeculativeJIT64.cpp \
191
    dfg/DFGTypeCheckHoistingPhase.cpp \
192
    dfg/DFGThunks.cpp \
193
    dfg/DFGTierUpCheckInjectionPhase.cpp \
194
    dfg/DFGUnificationPhase.cpp \
195
    dfg/DFGUseKind.cpp \
196
    dfg/DFGValueSource.cpp \
197
    dfg/DFGVariableAccessDataDump.cpp \
198 199
    dfg/DFGVariableEvent.cpp \
    dfg/DFGVariableEventStream.cpp \
200
    dfg/DFGValidate.cpp \
201
    dfg/DFGVirtualRegisterAllocationPhase.cpp \
202
    dfg/DFGWorklist.cpp \
203
    disassembler/Disassembler.cpp \
204
    interpreter/AbstractPC.cpp \
205 206
    interpreter/CallFrame.cpp \
    interpreter/Interpreter.cpp \
207
    interpreter/JSStack.cpp \
208
    interpreter/StackVisitor.cpp \
209
    jit/ClosureCallStubRoutine.cpp \
210 211
    jit/ExecutableAllocatorFixedVMPool.cpp \
    jit/ExecutableAllocator.cpp \
212
    jit/HostCallReturnValue.cpp \
213
    jit/GCAwareJITStubRoutine.cpp \
214 215 216 217
    jit/JITArithmetic.cpp \
    jit/JITArithmetic32_64.cpp \
    jit/JITCall.cpp \
    jit/JITCall32_64.cpp \
218
    jit/JITCode.cpp \
219
    jit/JIT.cpp \
220
    jit/JITDisassembler.cpp \
221
    jit/JITExceptions.cpp \
222 223 224 225
    jit/JITOpcodes.cpp \
    jit/JITOpcodes32_64.cpp \
    jit/JITPropertyAccess.cpp \
    jit/JITPropertyAccess32_64.cpp \
226
    jit/JITStubRoutine.cpp \
227
    jit/JITStubs.cpp \
228
    jit/JITThunks.cpp \
229
    jit/JITToDFGDeferredCompilationCallback.cpp \
230
    jit/JumpReplacementWatchpoint.cpp \
231
    jit/ThunkGenerators.cpp \
232 233
    llint/LLIntCLoop.cpp \
    llint/LLIntData.cpp \
234
    llint/LLIntEntrypoint.cpp \
235 236 237 238
    llint/LLIntExceptions.cpp \
    llint/LLIntSlowPaths.cpp \
    llint/LLIntThunks.cpp \
    llint/LowLevelInterpreter.cpp \
239 240 241 242
    parser/Lexer.cpp \
    parser/Nodes.cpp \
    parser/ParserArena.cpp \
    parser/Parser.cpp \
243
    parser/SourceCode.cpp \
244
    parser/SourceProvider.cpp \
245
    parser/SourceProviderCache.cpp \
246 247
    profiler/ProfilerBytecode.cpp \
    profiler/ProfilerBytecode.h \
248
    profiler/ProfilerBytecodeSequence.cpp \
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
    profiler/ProfilerBytecodes.cpp \
    profiler/ProfilerBytecodes.h \
    profiler/ProfilerCompilation.cpp \
    profiler/ProfilerCompilation.h \
    profiler/ProfilerCompilationKind.cpp \
    profiler/ProfilerCompilationKind.h \
    profiler/ProfilerCompiledBytecode.cpp \
    profiler/ProfilerCompiledBytecode.h \
    profiler/ProfilerDatabase.cpp \
    profiler/ProfilerDatabase.h \
    profiler/ProfilerExecutionCounter.h \
    profiler/ProfilerOrigin.cpp \
    profiler/ProfilerOrigin.h \
    profiler/ProfilerOriginStack.cpp \
    profiler/ProfilerOriginStack.h \
264 265
    profiler/ProfilerOSRExit.cpp \
    profiler/ProfilerOSRExitSite.cpp \
266
    profiler/ProfilerProfiledBytecodes.cpp \
267 268 269
    profiler/Profile.cpp \
    profiler/ProfileGenerator.cpp \
    profiler/ProfileNode.cpp \
270
    profiler/LegacyProfiler.cpp \
271 272
    runtime/ArgList.cpp \
    runtime/Arguments.cpp \
273 274
    runtime/ArrayBuffer.cpp \
    runtime/ArrayBufferView.cpp \
275 276 277 278 279 280
    runtime/ArrayConstructor.cpp \
    runtime/ArrayPrototype.cpp \
    runtime/BooleanConstructor.cpp \
    runtime/BooleanObject.cpp \
    runtime/BooleanPrototype.cpp \
    runtime/CallData.cpp \
281
    runtime/CodeCache.cpp \
282
    runtime/CodeSpecializationKind.cpp \
283
    runtime/CommonIdentifiers.cpp \
284
    runtime/CommonSlowPaths.cpp \
285
    runtime/CommonSlowPathsExceptions.cpp \
286
    runtime/CompilationResult.cpp \
287 288
    runtime/Completion.cpp \
    runtime/ConstructData.cpp \
289
    runtime/DataView.cpp \
290 291 292 293
    runtime/DateConstructor.cpp \
    runtime/DateConversion.cpp \
    runtime/DateInstance.cpp \
    runtime/DatePrototype.cpp \
294
    runtime/DumpContext.cpp \
295
    runtime/Error.cpp \
296
    runtime/ErrorConstructor.cpp \
297 298 299 300 301
    runtime/ErrorInstance.cpp \
    runtime/ErrorPrototype.cpp \
    runtime/ExceptionHelpers.cpp \
    runtime/Executable.cpp \
    runtime/FunctionConstructor.cpp \
302
    runtime/FunctionExecutableDump.cpp \
303 304 305 306
    runtime/FunctionPrototype.cpp \
    runtime/GCActivityCallback.cpp \
    runtime/GetterSetter.cpp \
    runtime/Identifier.cpp \
307
    runtime/IndexingType.cpp \
308
    runtime/InitializeThreading.cpp \
309
    runtime/IntendedStructureChain.cpp \
310 311
    runtime/InternalFunction.cpp \
    runtime/JSAPIValueWrapper.cpp \
312
    runtime/JSActivation.cpp \
313
    runtime/JSArray.cpp \
314 315 316 317 318 319
    runtime/JSArrayBuffer.cpp \
    runtime/JSArrayBufferConstructor.cpp \
    runtime/JSArrayBufferPrototype.cpp \
    runtime/JSArrayBufferView.cpp \
    runtime/JSBoundFunction.cpp \
    runtime/JSCJSValue.cpp \
320
    runtime/JSCell.cpp \
321 322
    runtime/JSDataView.cpp \
    runtime/JSDataViewPrototype.cpp \
323
    runtime/JSDateMath.cpp \
324 325 326 327
    runtime/JSFunction.cpp \
    runtime/JSGlobalObject.cpp \
    runtime/JSGlobalObjectFunctions.cpp \
    runtime/JSLock.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
328 329
    runtime/JSMap.cpp \
    runtime/JSNameScope.cpp \
330
    runtime/JSNameScope.cpp \
331 332
    runtime/JSNotAnObject.cpp \
    runtime/JSONObject.cpp \
333
    runtime/JSObject.cpp \
weinig@apple.com's avatar
weinig@apple.com committed
334 335 336 337 338 339 340
    runtime/JSPromise.cpp \
    runtime/JSPromiseCallback.cpp \
    runtime/JSPromiseConstructor.cpp \
    runtime/JSPromisePrototype.cpp \
    runtime/JSPromiseResolver.cpp \
    runtime/JSPromiseResolverConstructor.cpp \
    runtime/JSPromiseResolverPrototype.cpp \
341
    runtime/JSPropertyNameIterator.cpp \
342
    runtime/JSProxy.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
343
    runtime/JSSet.cpp \
344
    runtime/JSScope.cpp \
345
    runtime/JSSegmentedVariableObject.cpp \
346
    runtime/JSString.cpp \
347
    runtime/JSStringJoiner.cpp \
348
    runtime/JSSymbolTableObject.cpp \
349 350 351
    runtime/JSTypedArrayConstructors.cpp \
    runtime/JSTypedArrayPrototypes.cpp \
    runtime/JSTypedArrays.cpp \
352
    runtime/JSVariableObject.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
353
    runtime/JSWeakMap.cpp \
354
    runtime/JSWithScope.cpp \
355 356 357
    runtime/JSWrapperObject.cpp \
    runtime/LiteralParser.cpp \
    runtime/Lookup.cpp \
358
    runtime/MapConstructor.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
359
    runtime/MapData.cpp \
akling@apple.com's avatar
akling@apple.com committed
360
    runtime/MapPrototype.cpp \
361
    runtime/MathObject.cpp \
362
    runtime/MemoryStatistics.cpp \
363 364 365
    runtime/NameConstructor.cpp \
    runtime/NameInstance.cpp \
    runtime/NamePrototype.cpp \
366 367 368 369 370 371 372 373
    runtime/NativeErrorConstructor.cpp \
    runtime/NativeErrorPrototype.cpp \
    runtime/NumberConstructor.cpp \
    runtime/NumberObject.cpp \
    runtime/NumberPrototype.cpp \
    runtime/ObjectConstructor.cpp \
    runtime/ObjectPrototype.cpp \
    runtime/Operations.cpp \
374
    runtime/Options.cpp \
375 376 377
    runtime/PropertyDescriptor.cpp \
    runtime/PropertyNameArray.cpp \
    runtime/PropertySlot.cpp \
378
    runtime/PropertyTable.cpp \
379
    runtime/PrototypeMap.cpp \
380 381
    runtime/RegExp.cpp \
    runtime/RegExpCache.cpp \
382
    runtime/RegExpCachedResult.cpp \
383
    runtime/RegExpConstructor.cpp \
384
    runtime/RegExpMatchesArray.cpp \
385 386 387
    runtime/RegExpObject.cpp \
    runtime/RegExpPrototype.cpp \
    runtime/SamplingCounter.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
388 389
    runtime/SetConstructor.cpp \
    runtime/SetPrototype.cpp \
390
    runtime/SimpleTypedArrayController.cpp \
391
    runtime/SmallStrings.cpp \
392
    runtime/SparseArrayValueMap.cpp \
393 394 395 396 397 398
    runtime/StrictEvalActivation.cpp \
    runtime/StringConstructor.cpp \
    runtime/StringObject.cpp \
    runtime/StringPrototype.cpp \
    runtime/StringRecursionChecker.cpp \
    runtime/Structure.cpp \
399
    runtime/StructureChain.cpp \
400
    runtime/StructureRareData.cpp \
401
    runtime/SymbolTable.cpp \
402
    runtime/TestRunnerUtils.cpp \
403 404 405
    runtime/TypedArrayController.cpp \
    runtime/TypedArrayType.cpp \
    runtime/VM.cpp \
406 407
    runtime/Watchdog.cpp \
    runtime/WatchdogNone.cpp \
oliver@apple.com's avatar
oliver@apple.com committed
408 409 410
    runtime/WeakMapConstructor.cpp \
    runtime/WeakMapData.cpp \
    runtime/WeakMapPrototype.cpp \
411 412
    tools/CodeProfile.cpp \
    tools/CodeProfiling.cpp \
413 414
    yarr/YarrJIT.cpp \

415 416
linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
    SOURCES += \
417
        disassembler/X86Disassembler.cpp \
418 419 420 421 422 423 424 425 426 427
        disassembler/UDis86Disassembler.cpp \
        disassembler/udis86/udis86.c \
        disassembler/udis86/udis86_decode.c \
        disassembler/udis86/udis86_input.c \
        disassembler/udis86/udis86_itab_holder.c \
        disassembler/udis86/udis86_syn-att.c \
        disassembler/udis86/udis86_syn-intel.c \
        disassembler/udis86/udis86_syn.c \
}

428 429 430 431 432 433 434 435 436 437 438 439 440
win32:!win32-g++*:isEqual(QT_ARCH, "x86_64"):{
    asm_compiler.commands = ml64 /c
    asm_compiler.commands +=  /Fo ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
    asm_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
    asm_compiler.input = ASM_SOURCES
    asm_compiler.variable_out = OBJECTS
    asm_compiler.name = compiling[asm] ${QMAKE_FILE_IN}
    silent:asm_compiler.commands = @echo compiling[asm] ${QMAKE_FILE_IN} && $$asm_compiler.commands
    QMAKE_EXTRA_COMPILERS += asm_compiler

    ASM_SOURCES += jit/JITStubsMSVC64.asm
}

441 442 443 444 445
build?(qttestsupport) {
    HEADERS += API/JSCTestRunnerUtils.h
    SOURCES += API/JSCTestRunnerUtils.cpp
}

446 447
HEADERS += $$files(*.h, true)

448 449 450 451
*sh4* {
    QMAKE_CXXFLAGS += -mieee -w
    QMAKE_CFLAGS   += -mieee -w
}