| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 7b6dd3a119d40254f28764f8152d88daf9250e9a..6803193c14eee9d5d896927302c558c4a82e250c 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9624,6 +9624,16 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalReceiver) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAttachedGlobal) {
|
| + SealHandleScope shs(isolate);
|
| + ASSERT(args.length() == 1);
|
| + Object* global = args[0];
|
| + if (!global->IsJSGlobalObject()) return isolate->heap()->false_value();
|
| + return isolate->heap()->ToBoolean(
|
| + !JSGlobalObject::cast(global)->IsDetached());
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_ParseJson) {
|
| HandleScope scope(isolate);
|
| ASSERT_EQ(1, args.length());
|
|
|