Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index 61e9888f520c5ad30bdd5f9a7975ff466dc31f7b..cc15d0e18310cc65faa0b186cf08a245bd8d082e 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -178,7 +178,8 @@ 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_disable_optimization_reason( |
+ kOptimizationDisabledForTest); |
function->shared()->set_optimization_disabled(true); |
return isolate->heap()->undefined_value(); |
} |