| 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..972a0e7ce5b414e45670f0d2235334359f94cd78 100644
|
| --- a/test/cctest/compiler/function-tester.cc
|
| +++ b/test/cctest/compiler/function-tester.cc
|
| @@ -164,7 +164,9 @@ Handle<JSFunction> FunctionTester::Compile(Handle<JSFunction> function) {
|
| if (flags_ & CompilationInfo::kInliningEnabled) {
|
| info.MarkAsInliningEnabled();
|
| }
|
| - if (Compiler::EnsureBytecode(&info)) {
|
| +
|
| + CHECK(Compiler::Compile(function, Compiler::CLEAR_EXCEPTION));
|
| + if (info.shared_info()->HasBytecodeArray()) {
|
| info.MarkAsOptimizeFromBytecode();
|
| } else {
|
| CHECK(Compiler::ParseAndAnalyze(info.parse_info()));
|
|
|