diff options
Diffstat (limited to 'deps/v8/test/unittests/test-helpers.cc')
-rw-r--r-- | deps/v8/test/unittests/test-helpers.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/test/unittests/test-helpers.cc b/deps/v8/test/unittests/test-helpers.cc index 2d9149402fe..6691784a718 100644 --- a/deps/v8/test/unittests/test-helpers.cc +++ b/deps/v8/test/unittests/test-helpers.cc @@ -54,13 +54,15 @@ Handle<SharedFunctionInfo> CreateSharedFunctionInfo( } std::unique_ptr<ParseInfo> OuterParseInfoForShared( - Isolate* isolate, Handle<SharedFunctionInfo> shared) { + Isolate* isolate, Handle<SharedFunctionInfo> shared, + UnoptimizedCompileState* state) { Script script = Script::cast(shared->script()); - std::unique_ptr<ParseInfo> result = - std::make_unique<ParseInfo>(isolate, script); + std::unique_ptr<ParseInfo> result = std::make_unique<ParseInfo>( + isolate, i::UnoptimizedCompileFlags::ForScriptCompile(isolate, script), + state); // Create a character stream to simulate the parser having done so for the - // to-level ParseProgram. + // top-level ParseProgram. Handle<String> source(String::cast(script.source()), isolate); std::unique_ptr<Utf16CharacterStream> stream( ScannerStream::For(isolate, source)); |