Changeset 161104 in webkit
- Timestamp:
- Dec 27, 2013 10:39:04 AM (10 years ago)
- Location:
- branches/jsCStack/Source/JavaScriptCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jsCStack/Source/JavaScriptCore/ChangeLog
r161084 r161104 1 2013-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 1 28 2013-12-25 Mark Lam <mark.lam@apple.com> 2 29 -
branches/jsCStack/Source/JavaScriptCore/debugger/Debugger.cpp
r160082 r161104 197 197 // If JavaScript is running, it's not safe to recompile, since we'll end 198 198 // 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) 201 201 return; 202 202 -
branches/jsCStack/Source/JavaScriptCore/heap/Heap.cpp
r160931 r161104 292 292 void Heap::lastChanceToFinalize() 293 293 { 294 RELEASE_ASSERT(!m_vm-> entryScope);294 RELEASE_ASSERT(!m_vm->firstEntryScope); 295 295 RELEASE_ASSERT(m_operationInProgress == NoOperation); 296 296 … … 696 696 // If JavaScript is running, it's not safe to delete code, since we'll end 697 697 // up deleting code that is live on the stack. 698 if (m_vm-> entryScope)698 if (m_vm->firstEntryScope) 699 699 return; 700 700 -
branches/jsCStack/Source/JavaScriptCore/interpreter/CallFrame.cpp
r160835 r161104 131 131 // For any ExecState that's not a globalExec, the 132 132 // 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(); 135 135 } 136 136 -
branches/jsCStack/Source/JavaScriptCore/interpreter/JSStack.cpp
r161038 r161104 205 205 disableErrorStackReserve(); 206 206 #endif 207 if (m_vm. entryScope)208 m_vm. entryScope->updateStackLimit();207 if (m_vm.firstEntryScope) 208 m_vm.firstEntryScope->updateStackLimit(); 209 209 } 210 210 -
branches/jsCStack/Source/JavaScriptCore/runtime/VM.cpp
r160936 r161104 199 199 , jsFinalObjectClassInfo(JSFinalObject::info()) 200 200 , sizeOfLastScratchBuffer(0) 201 , entryScope(0)201 , firstEntryScope(0) 202 202 , m_enabledProfiler(0) 203 203 , m_regExpCache(new RegExpCache(this)) … … 551 551 prepareToDiscardCode(); 552 552 553 if ( entryScope) {553 if (firstEntryScope) { 554 554 StackPreservingRecompiler recompiler; 555 555 HeapIterationScope iterationScope(heap); -
branches/jsCStack/Source/JavaScriptCore/runtime/VM.h
r160936 r161104 427 427 void gatherConservativeRoots(ConservativeRoots&); 428 428 429 VMEntryScope* entryScope;429 VMEntryScope* firstEntryScope; 430 430 431 431 HashSet<JSObject*> stringRecursionCheckVisitedObjects; -
branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.cpp
r160967 r161104 36 36 , m_stack(wtfThreadData().stack()) 37 37 , m_globalObject(globalObject) 38 , m_prev (vm.entryScope)38 , m_prevFirstEntryScope(vm.firstEntryScope) 39 39 , m_prevStackLimit(vm.stackLimit()) 40 40 , m_prevLastStackTop(vm.lastStackTop()) 41 41 { 42 if (!vm. entryScope) {42 if (!vm.firstEntryScope) { 43 43 #if ENABLE(ASSEMBLER) 44 44 if (ExecutableAllocator::underMemoryPressure()) 45 45 vm.heap.deleteAllCompiledCode(); 46 46 #endif 47 vm. entryScope = this;47 vm.firstEntryScope = this; 48 48 49 49 // Reset the date cache between JS invocations to force the VM to … … 60 60 VMEntryScope::~VMEntryScope() 61 61 { 62 m_vm. entryScope = m_prev;62 m_vm.firstEntryScope = m_prevFirstEntryScope; 63 63 m_vm.setStackLimit(m_prevStackLimit); 64 64 m_vm.setLastStackTop(m_prevLastStackTop); -
branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.h
r160967 r161104 52 52 JSGlobalObject* m_globalObject; 53 53 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; 56 56 void* m_prevStackLimit; 57 57 void* m_prevLastStackTop;
Note: See TracChangeset
for help on using the changeset viewer.