Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 049519b6a83f08c224f13e49e12060cb93c967da..1428b2e03c0c0afff39c5da09c37fa7d77d723d2 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2507,11 +2507,6 @@ bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { |
isolate(), builtins, Builtins::GetName(id)).ToHandleChecked(); |
Handle<JSFunction> function = Handle<JSFunction>::cast(function_object); |
builtins->set_javascript_builtin(id, *function); |
- // 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()->set_disable_optimization_reason(kOptimizationDisabled); |
- function->shared()->set_optimization_disabled(true); |
if (!Compiler::EnsureCompiled(function, CLEAR_EXCEPTION)) { |
return false; |
} |