| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index 3dc3a244db441d7f4a996e22e56e79fca4b014b9..88e39cf02cacc0591dcbefcfe0f307f357c18614 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -463,5 +463,19 @@ RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) {
|
| UNIMPLEMENTED();
|
| return nullptr;
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_LoadHomeObject) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
| +
|
| + Handle<Object> home_object;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, home_object,
|
| + Object::GetProperty(function, isolate->factory()->home_object_symbol()));
|
| + DCHECK(home_object->IsJSReceiver());
|
| + return *home_object;
|
| +}
|
| }
|
| } // namespace v8::internal
|
|
|