Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index 9faa2dc69fcdf53ad28f9a3cd37701c35c73d18b..b4b90e2c5824463d548bc2816333caee7f8314f0 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -94,6 +94,7 @@ RUNTIME_FUNCTION(Runtime_NeverOptimizeFunction) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 1); |
CONVERT_ARG_CHECKED(JSFunction, function, 0); |
+ function->shared()->set_disable_optimization_reason(kOptimizationDisabled); |
function->shared()->set_optimization_disabled(true); |
return isolate->heap()->undefined_value(); |
} |