Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index bcc1fe88014d9bcd52a61df4bef62c1131e497a7..9edf65c54c23e251c1cd5fd0d2b8d7f89c9b635f 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -467,11 +467,8 @@ 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, isolate->factory()->code_stub_exports_object(), name); |
Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked()); |
DCHECK(!function->IsUndefined() && |
"JavaScript implementation of stub not found"); |