| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index edd58e252a5339b7964cfd5f1cc95019dd34c240..e77dd97ebf12ae9f50781351b8c8df26a1fb9e1f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2510,6 +2510,10 @@ bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) {
|
| Handle<Object> function_object = Object::GetProperty(
|
| isolate(), builtins, Builtins::GetName(id)).ToHandleChecked();
|
| Handle<JSFunction> function = Handle<JSFunction>::cast(function_object);
|
| + // TODO(mstarzinger): This is just a temporary hack to make TurboFan work,
|
| + // the correct solution is to restore the context register after invoking
|
| + // builtins from full-codegen.
|
| + function->shared()->DisableOptimization(kBuiltinFunctionCannotBeOptimized);
|
| builtins->set_javascript_builtin(id, *function);
|
| if (!Compiler::EnsureCompiled(function, CLEAR_EXCEPTION)) {
|
| return false;
|
|
|