| 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) {
|
|
|