| Index: test/cctest/compiler/function-tester.h
|
| diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h
|
| index 3d6e3ffe906831c1b604677c9d5b8c4765789f0c..8b48e9fe901f07acfa17519d336db489286db465 100644
|
| --- a/test/cctest/compiler/function-tester.h
|
| +++ b/test/cctest/compiler/function-tester.h
|
| @@ -160,6 +160,7 @@ class FunctionTester : public InitializedHandleScope {
|
| Zone zone;
|
| ParseInfo parse_info(&zone, function);
|
| CompilationInfo info(&parse_info);
|
| + info.MarkAsDeoptimizationEnabled();
|
|
|
| CHECK(Parser::ParseStatic(info.parse_info()));
|
| info.SetOptimizing(BailoutId::None(), Handle<Code>(function->code()));
|
| @@ -177,11 +178,8 @@ class FunctionTester : public InitializedHandleScope {
|
|
|
| Pipeline pipeline(&info);
|
| Handle<Code> code = pipeline.GenerateCode();
|
| - if (FLAG_turbo_deoptimization) {
|
| - info.context()->native_context()->AddOptimizedCode(*code);
|
| - }
|
| -
|
| CHECK(!code.is_null());
|
| + info.context()->native_context()->AddOptimizedCode(*code);
|
| function->ReplaceCode(*code);
|
| #elif USE_CRANKSHAFT
|
| Handle<Code> unoptimized = Handle<Code>(function->code());
|
|
|