| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 v8::MicrotaskCallback callback = | 2337 v8::MicrotaskCallback callback = |
| 2338 v8::ToCData<v8::MicrotaskCallback>(callback_info->callback()); | 2338 v8::ToCData<v8::MicrotaskCallback>(callback_info->callback()); |
| 2339 void* data = v8::ToCData<void*>(callback_info->data()); | 2339 void* data = v8::ToCData<void*>(callback_info->data()); |
| 2340 callback(data); | 2340 callback(data); |
| 2341 } | 2341 } |
| 2342 } | 2342 } |
| 2343 } | 2343 } |
| 2344 } | 2344 } |
| 2345 | 2345 |
| 2346 | 2346 |
| 2347 bool StackLimitCheck::JsHasOverflowed() const { |
| 2348 StackGuard* stack_guard = isolate_->stack_guard(); |
| 2349 #ifdef USE_SIMULATOR |
| 2350 // The simulator uses a separate JS stack. |
| 2351 Address jssp_address = Simulator::current(isolate_)->get_sp(); |
| 2352 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); |
| 2353 if (jssp < stack_guard->real_jslimit()) return true; |
| 2354 #endif // USE_SIMULATOR |
| 2355 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
| 2356 } |
| 2357 |
| 2358 |
| 2347 } } // namespace v8::internal | 2359 } } // namespace v8::internal |
| OLD | NEW |