Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: src/isolate.cc

Issue 300683005: Rename EnterDebugger to DebugScope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698