Ignore:
Timestamp:
Jul 8, 2016, 10:54:38 AM (9 years ago)
Author:
[email protected]
Message:

Rename jsCPUStackLimit to osStackLimitWithReserve and jsEmulatedStackLimit to cloopStackLimit.
https://bugs.webkit.org/show_bug.cgi?id=159544

Reviewed by Geoffrey Garen.

This patch does the following refactoring:

  1. Rename jsCPUStackLimit to osStackLimitWithReserve.
  2. Rename jsEmulatedStackLimit to cloopStackLimit.
  3. Remove llintStackLimit (which previously is either an alias for jsCPUStackLimit or jsEmulatedStackLimit depending on whether we have a JIT or C Loop build). Instead, we'll change the LLINT to conditionally use the osStackLimitWithReserve or cloopStackLimit.

There are no semantic changes.

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::lower):

  • interpreter/JSStack.cpp:

(JSC::JSStack::JSStack):
(JSC::JSStack::growSlowCase):
(JSC::JSStack::lowAddress):
(JSC::JSStack::highAddress):

  • interpreter/JSStack.h:
  • interpreter/JSStackInlines.h:

(JSC::JSStack::ensureCapacityFor):
(JSC::JSStack::shrink):
(JSC::JSStack::grow):
(JSC::JSStack::setCLoopStackLimit):
(JSC::JSStack::setJSEmulatedStackLimit): Deleted.

  • jit/JIT.cpp:

(JSC::JIT::compileWithoutLinking):

  • jit/SetupVarargsFrame.cpp:

(JSC::emitSetupVarargsFrameFastCase):

  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::LLINT_SLOW_PATH_DECL):

  • llint/LowLevelInterpreter.asm:
  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
  • runtime/RegExp.cpp:

(JSC::RegExp::finishCreation):
(JSC::RegExp::compile):
(JSC::RegExp::compileMatchOnly):

  • runtime/VM.cpp:

(JSC::VM::updateStackLimit):

  • runtime/VM.h:

(JSC::VM::reservedZoneSize):
(JSC::VM::osStackLimitWithReserve):
(JSC::VM::addressOfOSStackLimitWithReserve):
(JSC::VM::cloopStackLimit):
(JSC::VM::setCLoopStackLimit):
(JSC::VM::isSafeToRecurse):
(JSC::VM::jsCPUStackLimit): Deleted.
(JSC::VM::addressOfJSCPUStackLimit): Deleted.
(JSC::VM::jsEmulatedStackLimit): Deleted.
(JSC::VM::setJSEmulatedStackLimit): Deleted.

  • wasm/WASMFunctionCompiler.h:

(JSC::WASMFunctionCompiler::startFunction):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/JSStack.cpp

    r202862 r202992  
    6363
    6464    m_reservation = PageReservation::reserve(WTF::roundUpToMultipleOf(commitSize(), capacity), OSAllocator::JSVMStackPages);
    65     setJSEmulatedStackLimit(highAddress());
     65    setCLoopStackLimit(highAddress());
    6666    m_commitTop = highAddress();
    6767   
     
    8888    // just update the end pointer and return.
    8989    if (newTopOfStackWithReservedZone >= m_commitTop) {
    90         setJSEmulatedStackLimit(newTopOfStack);
     90        setCLoopStackLimit(newTopOfStack);
    9191        return true;
    9292    }
     
    105105    addToCommittedByteCount(delta);
    106106    m_commitTop = newCommitTop;
    107     setJSEmulatedStackLimit(newTopOfStack);
     107    setCLoopStackLimit(newTopOfStack);
    108108    return true;
    109109}
     
    157157{
    158158    ASSERT(wtfThreadData().stack().isGrowingDownward());
    159     return reinterpret_cast<Register*>(m_vm.jsCPUStackLimit());
     159    return reinterpret_cast<Register*>(m_vm.osStackLimitWithReserve());
    160160}
    161161
Note: See TracChangeset for help on using the changeset viewer.