| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index bcc1fe88014d9bcd52a61df4bef62c1131e497a7..efff187251f51be765edecdf5868f053e16ac8dd 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -467,11 +467,9 @@ namespace {
|
|
|
| Handle<JSFunction> GetFunction(Isolate* isolate, const char* name) {
|
| v8::ExtensionConfiguration no_extensions;
|
| - Handle<Context> ctx = isolate->bootstrapper()->CreateEnvironment(
|
| - MaybeHandle<JSGlobalProxy>(), v8::Local<v8::ObjectTemplate>(),
|
| - &no_extensions);
|
| - Handle<JSBuiltinsObject> builtins = handle(ctx->builtins());
|
| - MaybeHandle<Object> fun = Object::GetProperty(isolate, builtins, name);
|
| + MaybeHandle<Object> fun = Object::GetProperty(
|
| + isolate, Handle<JSObject>(isolate->heap()->code_stub_exports_object()),
|
| + name);
|
| Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked());
|
| DCHECK(!function->IsUndefined() &&
|
| "JavaScript implementation of stub not found");
|
|
|