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

Unified Diff: src/runtime/runtime-debug.cc

Issue 998253005: Debugger: deduplicate shared function info when setting script break points. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed nit Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/debug-liveedit-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-debug.cc
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
index 392f943472245bccce9f72b161eaddcdff79258e..e8a20ec135d0546fa0818a0631a3731e611615ea 100644
--- a/src/runtime/runtime-debug.cc
+++ b/src/runtime/runtime-debug.cc
@@ -2683,6 +2683,15 @@ RUNTIME_FUNCTION(Runtime_ExecuteInDebugContext) {
}
+RUNTIME_FUNCTION(Runtime_GetDebugContext) {
+ HandleScope scope(isolate);
+ DCHECK(args.length() == 0);
+ Handle<Context> context = isolate->debug()->GetDebugContext();
+ context->set_security_token(isolate->native_context()->security_token());
+ return context->global_proxy();
+}
+
+
// Performs a GC.
// Presently, it only does a full GC.
RUNTIME_FUNCTION(Runtime_CollectGarbage) {
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/debug-liveedit-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698