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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 bool capture, | 1300 bool capture, |
1301 int frame_limit, | 1301 int frame_limit, |
1302 StackTrace::StackTraceOptions options) { | 1302 StackTrace::StackTraceOptions options) { |
1303 capture_stack_trace_for_uncaught_exceptions_ = capture; | 1303 capture_stack_trace_for_uncaught_exceptions_ = capture; |
1304 stack_trace_for_uncaught_exceptions_frame_limit_ = frame_limit; | 1304 stack_trace_for_uncaught_exceptions_frame_limit_ = frame_limit; |
1305 stack_trace_for_uncaught_exceptions_options_ = options; | 1305 stack_trace_for_uncaught_exceptions_options_ = options; |
1306 } | 1306 } |
1307 | 1307 |
1308 | 1308 |
1309 Handle<Context> Isolate::native_context() { | 1309 Handle<Context> Isolate::native_context() { |
1310 return Handle<Context>(context()->global_object()->native_context()); | 1310 return handle(context()->native_context()); |
1311 } | 1311 } |
1312 | 1312 |
1313 | 1313 |
1314 Handle<Context> Isolate::global_context() { | 1314 Handle<Context> Isolate::global_context() { |
1315 return Handle<Context>(context()->global_object()->global_context()); | 1315 return handle(context()->global_object()->global_context()); |
1316 } | 1316 } |
1317 | 1317 |
1318 | 1318 |
1319 Handle<Context> Isolate::GetCallingNativeContext() { | 1319 Handle<Context> Isolate::GetCallingNativeContext() { |
1320 JavaScriptFrameIterator it(this); | 1320 JavaScriptFrameIterator it(this); |
1321 if (debug_->in_debug_scope()) { | 1321 if (debug_->in_debug_scope()) { |
1322 while (!it.done()) { | 1322 while (!it.done()) { |
1323 JavaScriptFrame* frame = it.frame(); | 1323 JavaScriptFrame* frame = it.frame(); |
1324 Context* context = Context::cast(frame->context()); | 1324 Context* context = Context::cast(frame->context()); |
1325 if (context->native_context() == *debug_->debug_context()) { | 1325 if (context->native_context() == *debug_->debug_context()) { |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 // The simulator uses a separate JS stack. | 2365 // The simulator uses a separate JS stack. |
2366 Address jssp_address = Simulator::current(isolate_)->get_sp(); | 2366 Address jssp_address = Simulator::current(isolate_)->get_sp(); |
2367 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); | 2367 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); |
2368 if (jssp < stack_guard->real_jslimit()) return true; | 2368 if (jssp < stack_guard->real_jslimit()) return true; |
2369 #endif // USE_SIMULATOR | 2369 #endif // USE_SIMULATOR |
2370 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); | 2370 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); |
2371 } | 2371 } |
2372 | 2372 |
2373 | 2373 |
2374 } } // namespace v8::internal | 2374 } } // namespace v8::internal |
OLD | NEW |