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 "v8.h" | 7 #include "v8.h" |
8 | 8 |
9 #include "ast.h" | 9 #include "ast.h" |
10 #include "bootstrapper.h" | 10 #include "bootstrapper.h" |
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 } | 1317 } |
1318 | 1318 |
1319 | 1319 |
1320 Handle<Context> Isolate::global_context() { | 1320 Handle<Context> Isolate::global_context() { |
1321 return Handle<Context>(context()->global_object()->global_context()); | 1321 return Handle<Context>(context()->global_object()->global_context()); |
1322 } | 1322 } |
1323 | 1323 |
1324 | 1324 |
1325 Handle<Context> Isolate::GetCallingNativeContext() { | 1325 Handle<Context> Isolate::GetCallingNativeContext() { |
1326 JavaScriptFrameIterator it(this); | 1326 JavaScriptFrameIterator it(this); |
1327 if (debug_->is_entered()) { | 1327 if (debug_->in_debug_scope()) { |
1328 while (!it.done()) { | 1328 while (!it.done()) { |
1329 JavaScriptFrame* frame = it.frame(); | 1329 JavaScriptFrame* frame = it.frame(); |
1330 Context* context = Context::cast(frame->context()); | 1330 Context* context = Context::cast(frame->context()); |
1331 if (context->native_context() == *debug_->debug_context()) { | 1331 if (context->native_context() == *debug_->debug_context()) { |
1332 it.Advance(); | 1332 it.Advance(); |
1333 } else { | 1333 } else { |
1334 break; | 1334 break; |
1335 } | 1335 } |
1336 } | 1336 } |
1337 } | 1337 } |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2305 Execution::Call(this, microtask, factory()->undefined_value(), | 2305 Execution::Call(this, microtask, factory()->undefined_value(), |
2306 0, NULL).Check(); | 2306 0, NULL).Check(); |
2307 } | 2307 } |
2308 } | 2308 } |
2309 | 2309 |
2310 handle_scope_implementer()->DecrementCallDepth(); | 2310 handle_scope_implementer()->DecrementCallDepth(); |
2311 } | 2311 } |
2312 | 2312 |
2313 | 2313 |
2314 } } // namespace v8::internal | 2314 } } // namespace v8::internal |
OLD | NEW |