| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index e07876b84bc375b27c9b49a92f94cb1128f33b94..e5df51e2e199d378088e0b6e10c9d303b0c54342 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -14883,12 +14883,7 @@ RUNTIME_FUNCTION(Runtime_IsObserved) {
|
|
|
| if (!args[0]->IsJSReceiver()) return isolate->heap()->false_value();
|
| CONVERT_ARG_CHECKED(JSReceiver, obj, 0);
|
| - if (obj->IsJSGlobalProxy()) {
|
| - Object* proto = obj->GetPrototype();
|
| - if (proto->IsNull()) return isolate->heap()->false_value();
|
| - ASSERT(proto->IsJSGlobalObject());
|
| - obj = JSReceiver::cast(proto);
|
| - }
|
| + ASSERT(!obj->IsJSGlobalProxy() || !obj->map()->is_observed());
|
| return isolate->heap()->ToBoolean(obj->map()->is_observed());
|
| }
|
|
|
| @@ -14897,12 +14892,7 @@ RUNTIME_FUNCTION(Runtime_SetIsObserved) {
|
| HandleScope scope(isolate);
|
| ASSERT(args.length() == 1);
|
| CONVERT_ARG_HANDLE_CHECKED(JSReceiver, obj, 0);
|
| - if (obj->IsJSGlobalProxy()) {
|
| - Object* proto = obj->GetPrototype();
|
| - if (proto->IsNull()) return isolate->heap()->undefined_value();
|
| - ASSERT(proto->IsJSGlobalObject());
|
| - obj = handle(JSReceiver::cast(proto));
|
| - }
|
| + ASSERT(!obj->IsJSGlobalProxy());
|
| if (obj->IsJSProxy())
|
| return isolate->heap()->undefined_value();
|
|
|
|
|