Changeset 226556 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jan 8, 2018, 2:59:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r226530 r226556 314 314 , m_numBreakpoints(0) 315 315 , m_ownerExecutable(*other.vm(), this, other.m_ownerExecutable.get()) 316 , m_ vm(other.m_vm)316 , m_poisonedVM(other.m_poisonedVM) 317 317 , m_instructions(other.m_instructions) 318 318 , m_thisRegister(other.m_thisRegister) … … 380 380 , m_numBreakpoints(0) 381 381 , m_ownerExecutable(*vm, this, ownerExecutable) 382 , m_ vm(vm)382 , m_poisonedVM(vm) 383 383 , m_thisRegister(unlinkedCodeBlock->thisRegister()) 384 384 , m_scopeRegister(unlinkedCodeBlock->scopeRegister()) … … 858 858 CodeBlock::~CodeBlock() 859 859 { 860 VM& vm = *m_ vm;860 VM& vm = *m_poisonedVM; 861 861 if (UNLIKELY(vm.m_perBytecodeProfiler)) 862 862 vm.m_perBytecodeProfiler->notifyDestruction(this); … … 915 915 void CodeBlock::setConstantRegisters(const Vector<WriteBarrier<Unknown>>& constants, const Vector<SourceCodeRepresentation>& constantsSourceCodeRepresentation) 916 916 { 917 VM& vm = *m_ vm;917 VM& vm = *m_poisonedVM; 918 918 auto scope = DECLARE_THROW_SCOPE(vm); 919 919 JSGlobalObject* globalObject = m_globalObject.get(); … … 1168 1168 return; 1169 1169 1170 VM& vm = *m_ vm;1170 VM& vm = *m_poisonedVM; 1171 1171 bool allAreMarkedSoFar = true; 1172 1172 … … 1301 1301 void CodeBlock::finalizeLLIntInlineCaches() 1302 1302 { 1303 VM& vm = *m_ vm;1303 VM& vm = *m_poisonedVM; 1304 1304 const Vector<unsigned>& propertyAccessInstructions = m_unlinkedCode->propertyAccessInstructions(); 1305 1305 for (size_t size = propertyAccessInstructions.size(), i = 0; i < size; ++i) { … … 1961 1961 #endif // ENABLE(DFG_JIT) 1962 1962 1963 VM& vm = *m_ vm;1963 VM& vm = *m_poisonedVM; 1964 1964 DeferGCForAWhile deferGC(*heap()); 1965 1965 … … 2769 2769 size_t CodeBlock::predictedMachineCodeSize() 2770 2770 { 2771 VM* vm = m_ vm.unpoisoned();2772 // This will be called from CodeBlock::CodeBlock before either m_ vmor the2771 VM* vm = m_poisonedVM.unpoisoned(); 2772 // This will be called from CodeBlock::CodeBlock before either m_poisonedVM or the 2773 2773 // instructions have been initialized. It's OK to return 0 because what will really 2774 2774 // matter is the recomputation of this value when the slow path is triggered.
Note:
See TracChangeset
for help on using the changeset viewer.