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.h

    r226530 r226556  
    371371    ScriptExecutable* ownerScriptExecutable() const { return jsCast<ScriptExecutable*>(m_ownerExecutable.get()); }
    372372
    373     VM* vm() const { return m_vm.unpoisoned(); }
     373    VM* vm() const { return m_poisonedVM.unpoisoned(); }
    374374
    375375    void setThisRegister(VirtualRegister thisRegister) { m_thisRegister = thisRegister; }
     
    549549        unsigned result = m_constantRegisters.size();
    550550        m_constantRegisters.append(WriteBarrier<Unknown>());
    551         m_constantRegisters.last().set(*m_vm, this, v);
     551        m_constantRegisters.last().set(*m_poisonedVM, this, v);
    552552        m_constantsSourceCodeRepresentation.append(SourceCodeRepresentation::Other);
    553553        return result;
     
    578578    const BitVector& bitVector(size_t i) { return m_unlinkedCode->bitVector(i); }
    579579
    580     Heap* heap() const { return &m_vm->heap; }
     580    Heap* heap() const { return &m_poisonedVM->heap; }
    581581    JSGlobalObject* globalObject() { return m_globalObject.get(); }
    582582
     
    937937    {
    938938        ASSERT(isConstantRegisterIndex(index) && static_cast<size_t>(index - FirstConstantRegisterIndex) < m_constantRegisters.size());
    939         m_constantRegisters[index - FirstConstantRegisterIndex].set(*m_vm, this, value);
     939        m_constantRegisters[index - FirstConstantRegisterIndex].set(*m_poisonedVM, this, value);
    940940    }
    941941
     
    983983    };
    984984    WriteBarrier<ExecutableBase> m_ownerExecutable;
    985     ConstExprPoisoned<CodeBlockPoison, VM*> m_vm;
     985    ConstExprPoisoned<CodeBlockPoison, VM*> m_poisonedVM;
    986986
    987987    PoisonedRefCountedArray<CodeBlockPoison, Instruction> m_instructions;
Note: See TracChangeset for help on using the changeset viewer.