source: webkit/trunk/Source/JavaScriptCore/Target.pri@ 154162

Last change on this file since 154162 was 154162, checked in by [email protected], 12 years ago

<https://webkit.org/b/119833> Concurrent compilation thread should not trigger WriteBarriers

Reviewed by Oliver Hunt.

The concurrent compilation thread should interact minimally with the Heap, including not
triggering WriteBarriers. This is a prerequisite for generational GC.

(JSC::CodeBlock::addOrFindConstant):
(JSC::CodeBlock::findConstant):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::addConstantLazily):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::getJSConstantForValue):
(JSC::DFG::ByteCodeParser::constantUndefined):
(JSC::DFG::ByteCodeParser::constantNull):
(JSC::DFG::ByteCodeParser::one):
(JSC::DFG::ByteCodeParser::constantNaN):
(JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):

  • dfg/DFGCommonData.cpp:

(JSC::DFG::CommonData::notifyCompilingStructureTransition):

  • dfg/DFGCommonData.h:
  • dfg/DFGDesiredTransitions.cpp: Added.

(JSC::DFG::DesiredTransition::DesiredTransition):
(JSC::DFG::DesiredTransition::reallyAdd):
(JSC::DFG::DesiredTransitions::DesiredTransitions):
(JSC::DFG::DesiredTransitions::~DesiredTransitions):
(JSC::DFG::DesiredTransitions::addLazily):
(JSC::DFG::DesiredTransitions::reallyAdd):

  • dfg/DFGDesiredTransitions.h: Added.
  • dfg/DFGDesiredWeakReferences.cpp: Added.

(JSC::DFG::DesiredWeakReferences::DesiredWeakReferences):
(JSC::DFG::DesiredWeakReferences::~DesiredWeakReferences):
(JSC::DFG::DesiredWeakReferences::addLazily):
(JSC::DFG::DesiredWeakReferences::reallyAdd):

  • dfg/DFGDesiredWeakReferences.h: Added.
  • dfg/DFGDesiredWriteBarriers.cpp: Added.

(JSC::DFG::DesiredWriteBarrier::DesiredWriteBarrier):
(JSC::DFG::DesiredWriteBarrier::trigger):
(JSC::DFG::DesiredWriteBarriers::DesiredWriteBarriers):
(JSC::DFG::DesiredWriteBarriers::~DesiredWriteBarriers):
(JSC::DFG::DesiredWriteBarriers::addImpl):
(JSC::DFG::DesiredWriteBarriers::trigger):

  • dfg/DFGDesiredWriteBarriers.h: Added.

(JSC::DFG::DesiredWriteBarriers::add):
(JSC::DFG::initializeLazyWriteBarrier):

  • dfg/DFGFixupPhase.cpp:

(JSC::DFG::FixupPhase::truncateConstantToInt32):

  • dfg/DFGGraph.h:

(JSC::DFG::Graph::convertToConstant):

  • dfg/DFGJITCompiler.h:

(JSC::DFG::JITCompiler::addWeakReference):

  • dfg/DFGPlan.cpp:

(JSC::DFG::Plan::Plan):
(JSC::DFG::Plan::reallyAdd):

  • dfg/DFGPlan.h:
  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • runtime/WriteBarrier.h:

(JSC::WriteBarrierBase::set):
(JSC::WriteBarrier::WriteBarrier):

File size: 13.3 KB
Line 
1# -------------------------------------------------------------------
2# Target file for the JavaScriptSource library
3#
4# See 'Tools/qmake/README' for an overview of the build system
5# -------------------------------------------------------------------
6
7TEMPLATE = lib
8TARGET = JavaScriptCore
9
10include(JavaScriptCore.pri)
11
12WEBKIT += wtf
13QT += core
14QT -= gui
15
16CONFIG += 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
29include(yarr/yarr.pri)
30
31INSTALLDEPS += all
32
33debug_and_release: INCLUDEPATH += $$JAVASCRIPTCORE_GENERATED_SOURCES_DIR/$$targetSubDir()
34
35SOURCES += \
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/ExecutionCounter.cpp \
65 bytecode/ExitKind.cpp \
66 bytecode/GetByIdStatus.cpp \
67 bytecode/JumpTable.cpp \
68 bytecode/LazyOperandValueProfile.cpp \
69 bytecode/MethodOfGettingAValueProfile.cpp \
70 bytecode/Opcode.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 \
89 heap/Weak.cpp \
90 heap/WeakBlock.cpp \
91 heap/WeakHandleOwner.cpp \
92 heap/WeakSet.cpp \
93 heap/HandleSet.cpp \
94 heap/HandleStack.cpp \
95 heap/BlockAllocator.cpp \
96 heap/GCThreadSharedData.cpp \
97 heap/GCThread.cpp \
98 heap/Heap.cpp \
99 heap/HeapStatistics.cpp \
100 heap/HeapTimer.cpp \
101 heap/IncrementalSweeper.cpp \
102 heap/JITStubRoutineSet.cpp \
103 heap/MachineStackMarker.cpp \
104 heap/MarkStack.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 \
129 dfg/DFGCommon.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 \
146 dfg/DFGDriver.cpp \
147 dfg/DFGEdge.cpp \
148 dfg/DFGFailedFinalizer.cpp \
149 dfg/DFGFinalizer.cpp \
150 dfg/DFGFixupPhase.cpp \
151 dfg/DFGFlushFormat.cpp \
152 dfg/DFGFlushLivenessAnalysisPhase.cpp \
153 dfg/DFGGraph.cpp \
154 dfg/DFGInPlaceAbstractState.cpp \
155 dfg/DFGJITCode.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 \
165 dfg/DFGNode.cpp \
166 dfg/DFGNodeFlags.cpp \
167 dfg/DFGOperations.cpp \
168 dfg/DFGOSRAvailabilityAnalysisPhase.cpp \
169 dfg/DFGOSREntry.cpp \
170 dfg/DFGOSRExit.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 \
178 dfg/DFGPhase.cpp \
179 dfg/DFGPlan.cpp \
180 dfg/DFGPredictionPropagationPhase.cpp \
181 dfg/DFGPredictionInjectionPhase.cpp \
182 dfg/DFGRepatch.cpp \
183 dfg/DFGSSAConversionPhase.cpp \
184 dfg/DFGSpeculativeJIT.cpp \
185 dfg/DFGSpeculativeJIT32_64.cpp \
186 dfg/DFGSpeculativeJIT64.cpp \
187 dfg/DFGTypeCheckHoistingPhase.cpp \
188 dfg/DFGThunks.cpp \
189 dfg/DFGUnificationPhase.cpp \
190 dfg/DFGUseKind.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 \
211 jit/JITCall.cpp \
212 jit/JITCall32_64.cpp \
213 jit/JITCode.cpp \
214 jit/JIT.cpp \
215 jit/JITDisassembler.cpp \
216 jit/JITExceptions.cpp \
217 jit/JITOpcodes.cpp \
218 jit/JITOpcodes32_64.cpp \
219 jit/JITPropertyAccess.cpp \
220 jit/JITPropertyAccess32_64.cpp \
221 jit/JITStubRoutine.cpp \
222 jit/JITStubs.cpp \
223 jit/JITThunks.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 \
233 parser/Lexer.cpp \
234 parser/Nodes.cpp \
235 parser/ParserArena.cpp \
236 parser/Parser.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 \
289 runtime/Error.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 \
314 runtime/JSCell.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 \
321 runtime/JSLock.cpp \
322 runtime/JSNameScope.cpp \
323 runtime/JSNotAnObject.cpp \
324 runtime/JSONObject.cpp \
325 runtime/JSObject.cpp \
326 runtime/JSPropertyNameIterator.cpp \
327 runtime/JSProxy.cpp \
328 runtime/JSScope.cpp \
329 runtime/JSSegmentedVariableObject.cpp \
330 runtime/JSString.cpp \
331 runtime/JSStringJoiner.cpp \
332 runtime/JSSymbolTableObject.cpp \
333 runtime/JSTypedArrayConstructors.cpp \
334 runtime/JSTypedArrayPrototypes.cpp \
335 runtime/JSTypedArrays.cpp \
336 runtime/JSVariableObject.cpp \
337 runtime/JSWithScope.cpp \
338 runtime/JSWrapperObject.cpp \
339 runtime/LiteralParser.cpp \
340 runtime/Lookup.cpp \
341 runtime/MathObject.cpp \
342 runtime/MemoryStatistics.cpp \
343 runtime/NameConstructor.cpp \
344 runtime/NameInstance.cpp \
345 runtime/NamePrototype.cpp \
346 runtime/NativeErrorConstructor.cpp \
347 runtime/NativeErrorPrototype.cpp \
348 runtime/NumberConstructor.cpp \
349 runtime/NumberObject.cpp \
350 runtime/NumberPrototype.cpp \
351 runtime/ObjectConstructor.cpp \
352 runtime/ObjectPrototype.cpp \
353 runtime/Operations.cpp \
354 runtime/Options.cpp \
355 runtime/PropertyDescriptor.cpp \
356 runtime/PropertyNameArray.cpp \
357 runtime/PropertySlot.cpp \
358 runtime/PropertyTable.cpp \
359 runtime/PrototypeMap.cpp \
360 runtime/RegExp.cpp \
361 runtime/RegExpCache.cpp \
362 runtime/RegExpCachedResult.cpp \
363 runtime/RegExpConstructor.cpp \
364 runtime/RegExpMatchesArray.cpp \
365 runtime/RegExpObject.cpp \
366 runtime/RegExpPrototype.cpp \
367 runtime/SamplingCounter.cpp \
368 runtime/SimpleTypedArrayController.cpp \
369 runtime/SmallStrings.cpp \
370 runtime/SparseArrayValueMap.cpp \
371 runtime/StrictEvalActivation.cpp \
372 runtime/StringConstructor.cpp \
373 runtime/StringObject.cpp \
374 runtime/StringPrototype.cpp \
375 runtime/StringRecursionChecker.cpp \
376 runtime/Structure.cpp \
377 runtime/StructureChain.cpp \
378 runtime/StructureRareData.cpp \
379 runtime/SymbolTable.cpp \
380 runtime/TypedArrayController.cpp \
381 runtime/TypedArrayType.cpp \
382 runtime/VM.cpp \
383 runtime/Watchdog.cpp \
384 runtime/WatchdogNone.cpp \
385 tools/CodeProfile.cpp \
386 tools/CodeProfiling.cpp \
387 yarr/YarrJIT.cpp \
388
389linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
390 SOURCES += \
391 disassembler/X86Disassembler.cpp \
392 disassembler/UDis86Disassembler.cpp \
393 disassembler/udis86/udis86.c \
394 disassembler/udis86/udis86_decode.c \
395 disassembler/udis86/udis86_input.c \
396 disassembler/udis86/udis86_itab_holder.c \
397 disassembler/udis86/udis86_syn-att.c \
398 disassembler/udis86/udis86_syn-intel.c \
399 disassembler/udis86/udis86_syn.c \
400}
401
402win32:!win32-g++*:isEqual(QT_ARCH, "x86_64"):{
403 asm_compiler.commands = ml64 /c
404 asm_compiler.commands += /Fo ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
405 asm_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
406 asm_compiler.input = ASM_SOURCES
407 asm_compiler.variable_out = OBJECTS
408 asm_compiler.name = compiling[asm] ${QMAKE_FILE_IN}
409 silent:asm_compiler.commands = @echo compiling[asm] ${QMAKE_FILE_IN} && $$asm_compiler.commands
410 QMAKE_EXTRA_COMPILERS += asm_compiler
411
412 ASM_SOURCES += jit/JITStubsMSVC64.asm
413}
414
415build?(qttestsupport) {
416 HEADERS += API/JSCTestRunnerUtils.h
417 SOURCES += API/JSCTestRunnerUtils.cpp
418}
419
420HEADERS += $$files(*.h, true)
421
422*sh4* {
423 QMAKE_CXXFLAGS += -mieee -w
424 QMAKE_CFLAGS += -mieee -w
425}
Note: See TracBrowser for help on using the repository browser.