| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 50bbafc59a49c73dd1c950544a43e64e0ecd826c..229b8df970f1b5b24653ee58b80072cdef6d4d1c 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -386,7 +386,8 @@ void StackGuard::ThreadLocal::Initialize() {
|
| if (initial_climit_ == kIllegalLimit) {
|
| // Takes the address of the limit variable in order to find out where
|
| // the top of stack is right now.
|
| - intptr_t limit = reinterpret_cast<intptr_t>(&limit) - kLimitSize;
|
| + uintptr_t limit = reinterpret_cast<uintptr_t>(&limit) - kLimitSize;
|
| + ASSERT(reinterpret_cast<uintptr_t>(&limit) > kLimitSize);
|
| initial_jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
|
| jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
|
| initial_climit_ = limit;
|
|
|