Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 4254e59e04e9730d01dde54fddac56532ba70cff..049519b6a83f08c224f13e49e12060cb93c967da 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2510,6 +2510,7 @@ bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { |
// 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; |