Changeset 161369 in webkit
- Timestamp:
- Jan 6, 2014, 1:48:15 PM (12 years ago)
- Location:
- branches/jsCStack/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jsCStack/Source/JavaScriptCore/ChangeLog
r161361 r161369 1 2014-01-06 Mark Lam <mark.lam@apple.com> 2 3 Follow up patch to remove the need for VMEntryScope::m_prevFirstEntryScope. 4 https://bugs.webkit.org/show_bug.cgi?id=126266. 5 6 Reviewed by Geoffrey Garen. 7 8 There can only be one firstEntryScope. Instead of saving the previous value of 9 VM::firstEntryScope, we now check if the firstEntryScope is the same as this 10 VMEntryScope in its destructor. If so, we will set VM::firstEntryScope to 0. 11 12 * runtime/VMEntryScope.cpp: 13 (JSC::VMEntryScope::VMEntryScope): 14 (JSC::VMEntryScope::~VMEntryScope): 15 * runtime/VMEntryScope.h: 16 1 17 2014-01-06 Mark Lam <mark.lam@apple.com> 2 18 … … 513 529 514 530 Not yet reviewed. 531 532 This patch is so that we can distinguish firstEntryScope from topEntryScope 533 which will be introduced later in https://bugs.webkit.org/show_bug.cgi?id=126334. 515 534 516 535 Also renamed VMEntryScope::m_prev to m_prevFirstEntryScope. -
branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.cpp
r161219 r161369 38 38 , m_globalObject(globalObject) 39 39 , m_prevStackUsage(0) 40 , m_prevFirstEntryScope(vm.firstEntryScope)41 40 , m_prevTopEntryScope(vm.topEntryScope) 42 41 , m_prevStackLimit(vm.stackLimit()) … … 84 83 VMEntryScope::~VMEntryScope() 85 84 { 86 m_vm.firstEntryScope = m_prevFirstEntryScope; 85 if (m_vm.firstEntryScope == this) 86 m_vm.firstEntryScope = nullptr; 87 87 m_vm.topEntryScope = m_prevTopEntryScope; 88 88 m_vm.setStackLimit(m_prevStackLimit); -
branches/jsCStack/Source/JavaScriptCore/runtime/VMEntryScope.h
r161180 r161369 60 60 61 61 // The following pointers may point to a different thread's stack. 62 VMEntryScope* m_prevFirstEntryScope;63 62 VMEntryScope* m_prevTopEntryScope; 64 63 void* m_prevStackLimit;
Note:
See TracChangeset
for help on using the changeset viewer.