Ignore:
Timestamp:
Jan 8, 2018, 2:59:10 PM (8 years ago)
Author:
[email protected]
Message:

Rename CodeBlock::m_vm to CodeBlock::m_poisonedVM.
https://bugs.webkit.org/show_bug.cgi?id=181403
<rdar://problem/36359789>

Rubber-stamped by JF Bastien.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::CodeBlock):
(JSC::CodeBlock::~CodeBlock):
(JSC::CodeBlock::setConstantRegisters):
(JSC::CodeBlock::propagateTransitions):
(JSC::CodeBlock::finalizeLLIntInlineCaches):
(JSC::CodeBlock::jettison):
(JSC::CodeBlock::predictedMachineCodeSize):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::vm const):
(JSC::CodeBlock::addConstant):
(JSC::CodeBlock::heap const):
(JSC::CodeBlock::replaceConstant):

  • llint/LowLevelInterpreter.asm:
  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r226530 r226556  
    314314    , m_numBreakpoints(0)
    315315    , m_ownerExecutable(*other.vm(), this, other.m_ownerExecutable.get())
    316     , m_vm(other.m_vm)
     316    , m_poisonedVM(other.m_poisonedVM)
    317317    , m_instructions(other.m_instructions)
    318318    , m_thisRegister(other.m_thisRegister)
     
    380380    , m_numBreakpoints(0)
    381381    , m_ownerExecutable(*vm, this, ownerExecutable)
    382     , m_vm(vm)
     382    , m_poisonedVM(vm)
    383383    , m_thisRegister(unlinkedCodeBlock->thisRegister())
    384384    , m_scopeRegister(unlinkedCodeBlock->scopeRegister())
     
    858858CodeBlock::~CodeBlock()
    859859{
    860     VM& vm = *m_vm;
     860    VM& vm = *m_poisonedVM;
    861861    if (UNLIKELY(vm.m_perBytecodeProfiler))
    862862        vm.m_perBytecodeProfiler->notifyDestruction(this);
     
    915915void CodeBlock::setConstantRegisters(const Vector<WriteBarrier<Unknown>>& constants, const Vector<SourceCodeRepresentation>& constantsSourceCodeRepresentation)
    916916{
    917     VM& vm = *m_vm;
     917    VM& vm = *m_poisonedVM;
    918918    auto scope = DECLARE_THROW_SCOPE(vm);
    919919    JSGlobalObject* globalObject = m_globalObject.get();
     
    11681168        return;
    11691169
    1170     VM& vm = *m_vm;
     1170    VM& vm = *m_poisonedVM;
    11711171    bool allAreMarkedSoFar = true;
    11721172       
     
    13011301void CodeBlock::finalizeLLIntInlineCaches()
    13021302{
    1303     VM& vm = *m_vm;
     1303    VM& vm = *m_poisonedVM;
    13041304    const Vector<unsigned>& propertyAccessInstructions = m_unlinkedCode->propertyAccessInstructions();
    13051305    for (size_t size = propertyAccessInstructions.size(), i = 0; i < size; ++i) {
     
    19611961#endif // ENABLE(DFG_JIT)
    19621962
    1963     VM& vm = *m_vm;
     1963    VM& vm = *m_poisonedVM;
    19641964    DeferGCForAWhile deferGC(*heap());
    19651965   
     
    27692769size_t CodeBlock::predictedMachineCodeSize()
    27702770{
    2771     VM* vm = m_vm.unpoisoned();
    2772     // This will be called from CodeBlock::CodeBlock before either m_vm or the
     2771    VM* vm = m_poisonedVM.unpoisoned();
     2772    // This will be called from CodeBlock::CodeBlock before either m_poisonedVM or the
    27732773    // instructions have been initialized. It's OK to return 0 because what will really
    27742774    // matter is the recomputation of this value when the slow path is triggered.
Note: See TracChangeset for help on using the changeset viewer.