Changeset 170147 in webkit for trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
- Timestamp:
- Jun 19, 2014, 9:32:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
r165676 r170147 37 37 namespace JSC { 38 38 39 #if ENABLE(LLINT_C_LOOP)39 #if !ENABLE(JIT) 40 40 static size_t committedBytesCount = 0; 41 41 … … 45 45 return staticMutex; 46 46 } 47 #endif // ENABLE(LLINT_C_LOOP)47 #endif // !ENABLE(JIT) 48 48 49 49 JSStack::JSStack(VM& vm) 50 50 : m_vm(vm) 51 51 , m_topCallFrame(vm.topCallFrame) 52 #if ENABLE(LLINT_C_LOOP)52 #if !ENABLE(JIT) 53 53 , m_end(0) 54 54 , m_reservedZoneSizeInRegisters(0) 55 55 #endif 56 56 { 57 #if ENABLE(LLINT_C_LOOP)57 #if !ENABLE(JIT) 58 58 size_t capacity = Options::maxPerThreadStackUsage(); 59 59 ASSERT(capacity && isPageAligned(capacity)); … … 64 64 65 65 m_lastStackTop = baseOfStack(); 66 #endif // ENABLE(LLINT_C_LOOP)66 #endif // !ENABLE(JIT) 67 67 68 68 m_topCallFrame = 0; 69 69 } 70 70 71 #if ENABLE(LLINT_C_LOOP)71 #if !ENABLE(JIT) 72 72 JSStack::~JSStack() 73 73 { … … 159 159 growSlowCase(m_end + 1); 160 160 } 161 #endif // ENABLE(LLINT_C_LOOP)161 #endif // !ENABLE(JIT) 162 162 163 #if !ENABLE(LLINT_C_LOOP)163 #if ENABLE(JIT) 164 164 Register* JSStack::lowAddress() const 165 165 { … … 173 173 return reinterpret_cast<Register*>(wtfThreadData().stack().origin()); 174 174 } 175 #endif // !ENABLE(LLINT_C_LOOP)175 #endif // ENABLE(JIT) 176 176 177 177 size_t JSStack::committedByteCount() 178 178 { 179 #if ENABLE(LLINT_C_LOOP)179 #if !ENABLE(JIT) 180 180 MutexLocker locker(stackStatisticsMutex()); 181 181 return committedBytesCount;
Note:
See TracChangeset
for help on using the changeset viewer.