diff options
Diffstat (limited to 'Source/JavaScriptCore/interpreter/JSStack.cpp')
-rw-r--r-- | Source/JavaScriptCore/interpreter/JSStack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/interpreter/JSStack.cpp b/Source/JavaScriptCore/interpreter/JSStack.cpp index f5f9e3763..ec2962a92 100644 --- a/Source/JavaScriptCore/interpreter/JSStack.cpp +++ b/Source/JavaScriptCore/interpreter/JSStack.cpp @@ -43,9 +43,9 @@ static Mutex& stackStatisticsMutex() return staticMutex; } -JSStack::JSStack(JSGlobalData& globalData, size_t capacity) +JSStack::JSStack(VM& vm, size_t capacity) : m_end(0) - , m_topCallFrame(globalData.topCallFrame) + , m_topCallFrame(vm.topCallFrame) { ASSERT(capacity && isPageAligned(capacity)); @@ -135,7 +135,7 @@ void JSStack::enableErrorStackReserve() void JSStack::disableErrorStackReserve() { char* useableEnd = reinterpret_cast<char*>(reservationEnd()) - commitSize; - m_useableEnd = reinterpret_cast<Register*>(useableEnd); + m_useableEnd = reinterpret_cast_ptr<Register*>(useableEnd); // By the time we get here, we are guaranteed to be destructing the last // Interpreter::ErrorHandlingMode that enabled this reserve in the first |