Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 1386b36383e2bb76a381776479f42f0248e4580d..0fc777cb6d9aeea072b1aa4996ee2c93ce772a25 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -67,6 +67,9 @@ 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()); |
function->ReplaceCode(*code); |