diff options
Diffstat (limited to 'deps/v8/test/cctest/compiler/function-tester.cc')
-rw-r--r-- | deps/v8/test/cctest/compiler/function-tester.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/test/cctest/compiler/function-tester.cc b/deps/v8/test/cctest/compiler/function-tester.cc index 24a49b852c..c88713a6dc 100644 --- a/deps/v8/test/cctest/compiler/function-tester.cc +++ b/deps/v8/test/cctest/compiler/function-tester.cc @@ -14,7 +14,7 @@ #include "src/handles.h" #include "src/objects-inl.h" #include "src/parsing/parse-info.h" -#include "src/parsing/parser.h" +#include "src/parsing/parsing.h" #include "test/cctest/cctest.h" namespace v8 { @@ -46,9 +46,7 @@ FunctionTester::FunctionTester(Handle<Code> code, int param_count) function->ReplaceCode(*code); } -FunctionTester::FunctionTester(const CallInterfaceDescriptor& descriptor, - Handle<Code> code) - : FunctionTester(code, descriptor.GetParameterCount()) {} +FunctionTester::FunctionTester(Handle<Code> code) : FunctionTester(code, 0) {} MaybeHandle<Object> FunctionTester::Call() { return Execution::Call(isolate, function, undefined(), 0, nullptr); @@ -166,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())); @@ -189,7 +189,7 @@ Handle<JSFunction> FunctionTester::CompileGraph(Graph* graph) { ParseInfo parse_info(&zone, handle(function->shared())); CompilationInfo info(&parse_info, function); - CHECK(Parser::ParseStatic(info.parse_info())); + CHECK(parsing::ParseFunction(info.parse_info())); info.SetOptimizing(); Handle<Code> code = Pipeline::GenerateCodeForTesting(&info, graph); |