Chromium Code Reviews| 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()), |
|
Michael Starzinger
2015/07/10 13:26:30
nit: Just use isolate->factory()->code_stub_export
danno
2015/07/13 09:43:37
Done
|
| + name); |
| Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked()); |
| DCHECK(!function->IsUndefined() && |
| "JavaScript implementation of stub not found"); |