Chromium Code Reviews| Index: test/cctest/compiler/function-tester.cc |
| diff --git a/test/cctest/compiler/function-tester.cc b/test/cctest/compiler/function-tester.cc |
| index bee8f63312b954950440c70198ebeedcfbbc16c7..c28581575439041437242affa68e6581fb76f471 100644 |
| --- a/test/cctest/compiler/function-tester.cc |
| +++ b/test/cctest/compiler/function-tester.cc |
| @@ -164,12 +164,11 @@ Handle<JSFunction> FunctionTester::Compile(Handle<JSFunction> function) { |
| if (flags_ & CompilationInfo::kInliningEnabled) { |
| info.MarkAsInliningEnabled(); |
| } |
| - if (Compiler::EnsureBytecode(&info)) { |
| - info.MarkAsOptimizeFromBytecode(); |
| - } else { |
| - CHECK(Compiler::ParseAndAnalyze(info.parse_info())); |
| - CHECK(Compiler::EnsureDeoptimizationSupport(&info)); |
| - } |
| + |
| + info.shared_info()->set_dont_crankshaft(true); |
| + CHECK(Compiler::EnsureBytecode(&info)); |
| + info.MarkAsOptimizeFromBytecode(); |
|
rmcilroy
2016/11/18 15:29:23
I updated this as well to ensure we always go thro
|
| + |
| JSFunction::EnsureLiterals(function); |
| Handle<Code> code = Pipeline::GenerateCodeForTesting(&info); |