Changeset 161104 in webkit


Ignore:
Timestamp:
Dec 27, 2013 10:39:04 AM (10 years ago)
Author:
mark.lam@apple.com
Message:

CStack: Cosmetic: rename VM::entryScope to firstEntryScope.
https://bugs.webkit.org/show_bug.cgi?id=126266.

Not yet reviewed.

Also renamed VMEntryScope::m_prev to m_prevFirstEntryScope.

  • debugger/Debugger.cpp:

(JSC::Debugger::recompileAllJSFunctions):

  • heap/Heap.cpp:

(JSC::Heap::lastChanceToFinalize):
(JSC::Heap::deleteAllCompiledCode):

  • interpreter/CallFrame.cpp:

(JSC::CallFrame::vmEntryGlobalObject):

  • interpreter/JSStack.cpp:

(JSC::JSStack::updateStackLimit):

  • runtime/VM.cpp:

(JSC::VM::VM):
(JSC::VM::releaseExecutableMemory):

  • runtime/VM.h:
  • runtime/VMEntryScope.cpp:

(JSC::VMEntryScope::VMEntryScope):
(JSC::VMEntryScope::~VMEntryScope):

  • runtime/VMEntryScope.h:
Location:
branches/jsCStack/Source/JavaScriptCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/jsCStack/Source/JavaScriptCore/ChangeLog

    r161084 r161104  
     12013-12-27  Mark Lam  <mark.lam@apple.com>
     2
     3        CStack: Cosmetic: rename VM::entryScope to firstEntryScope.
     4        https://bugs.webkit.org/show_bug.cgi?id=126266.
     5
     6        Not yet reviewed.
     7
     8        Also renamed VMEntryScope::m_prev to m_prevFirstEntryScope.
     9
     10        * debugger/Debugger.cpp:
     11        (JSC::Debugger::recompileAllJSFunctions):
     12        * heap/Heap.cpp:
     13        (JSC::Heap::lastChanceToFinalize):
     14        (JSC::Heap::deleteAllCompiledCode):
     15        * interpreter/CallFrame.cpp:
     16        (JSC::CallFrame::vmEntryGlobalObject):
     17        * interpreter/JSStack.cpp:
     18        (JSC::JSStack::updateStackLimit):
     19        * runtime/VM.cpp:
     20        (JSC::VM::VM):
     21        (JSC::VM::releaseExecutableMemory):
     22        * runtime/VM.h:
     23        * runtime/VMEntryScope.cpp:
     24        (JSC::VMEntryScope::VMEntryScope):
     25        (JSC::VMEntryScope::~VMEntryScope):
     26        * runtime/VMEntryScope.h:
     27
    1282013-12-25  Mark Lam  <mark.lam@apple.com>
    229
  • branches/jsCStack/Source/JavaScriptCore/debugger/Debugger.cpp

    r160082 r161104  
    197197    // If JavaScript is running, it's not safe to recompile, since we'll end
    198198    // up throwing away code that is live on the stack.
    199     ASSERT(!vm->entryScope);
    200     if (vm->entryScope)
     199    ASSERT(!vm->firstEntryScope);
     200    if (vm->firstEntryScope)
    201201        return;
    202202   
  • branches/jsCStack/Source/JavaScriptCore/heap/Heap.cpp

    r160931 r161104  
    292292void Heap::lastChanceToFinalize()
    293293{
    294     RELEASE_ASSERT(!m_vm->entryScope);
     294    RELEASE_ASSERT(!m_vm->firstEntryScope);
    295295    RELEASE_ASSERT(m_operationInProgress == NoOperation);
    296296
     
    696696    // If JavaScript is running, it's not safe to delete code, since we'll end
    697697    // up deleting code that is live on the stack.
    698     if (m_vm->entryScope)
     698    if (m_vm->firstEntryScope)
    699699        return;
    700700
  • branches/jsCStack/Source/JavaScriptCore/interpreter/CallFrame.cpp

    r160835 r161104  
    131131    // For any ExecState that's not a globalExec, the
    132132    // dynamic global object must be set since code is running
    133     ASSERT(vm().entryScope);
    134     return vm().entryScope->globalObject();
     133    ASSERT(vm().firstEntryScope);
     134    return vm().firstEntryScope->globalObject();
    135135}
    136136
  • branches/jsCStack/Source/JavaScriptCore/interpreter/JSStack.cpp

    r161038 r161104  
    205205        disableErrorStackReserve();
    206206#endif
    207     if (m_vm.entryScope)
    208         m_vm.entryScope->updateStackLimit();
     207    if (m_vm.firstEntryScope)
     208        m_vm.firstEntryScope->updateStackLimit();
    209209}
    210210
  • branches/jsCStack/Source/JavaScriptCore/runtime/VM.cpp

    r160936 r161104  
    199199    , jsFinalObjectClassInfo(JSFinalObject::info())
    200200    , sizeOfLastScratchBuffer(0)
    201     , entryScope(0)
     201    , firstEntryScope(0)
    202202    , m_enabledProfiler(0)
    203203    , m_regExpCache(new RegExpCache(this))
     
    551551    prepareToDiscardCode();
    552552   
    553     if (entryScope) {
     553    if (firstEntryScope) {
    554554        StackPreservingRecompiler recompiler;
    555555        HeapIterationScope iterationScope(heap);
  • branches/jsCStack/Source/JavaScriptCore/runtime/VM.h

    r160936 r161104  
    427427        void gatherConservativeRoots(ConservativeRoots&);
    428428
    429         VMEntryScope* entryScope;
     429        VMEntryScope* firstEntryScope;
    430430
    431431        HashSet<JSObject*> stringRecursionCheckVisitedObjects;
  • branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.cpp

    r160967 r161104  
    3636    , m_stack(wtfThreadData().stack())
    3737    , m_globalObject(globalObject)
    38     , m_prev(vm.entryScope)
     38    , m_prevFirstEntryScope(vm.firstEntryScope)
    3939    , m_prevStackLimit(vm.stackLimit())
    4040    , m_prevLastStackTop(vm.lastStackTop())
    4141{
    42     if (!vm.entryScope) {
     42    if (!vm.firstEntryScope) {
    4343#if ENABLE(ASSEMBLER)
    4444        if (ExecutableAllocator::underMemoryPressure())
    4545            vm.heap.deleteAllCompiledCode();
    4646#endif
    47         vm.entryScope = this;
     47        vm.firstEntryScope = this;
    4848
    4949        // Reset the date cache between JS invocations to force the VM to
     
    6060VMEntryScope::~VMEntryScope()
    6161{
    62     m_vm.entryScope = m_prev;
     62    m_vm.firstEntryScope = m_prevFirstEntryScope;
    6363    m_vm.setStackLimit(m_prevStackLimit);
    6464    m_vm.setLastStackTop(m_prevLastStackTop);
  • branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.h

    r160967 r161104  
    5252    JSGlobalObject* m_globalObject;
    5353
    54     // m_prev, m_prevStackLimit & m_prevLastStackTop may belong to a different thread's stack.
    55     VMEntryScope* m_prev;
     54    // m_prevFirstEntryScope, m_prevStackLimit & m_prevLastStackTop may belong to a different thread's stack.
     55    VMEntryScope* m_prevFirstEntryScope;
    5656    void* m_prevStackLimit;
    5757    void* m_prevLastStackTop;
Note: See TracChangeset for help on using the changeset viewer.