Index: test/cctest/compiler/test-linkage.cc |
diff --git a/test/cctest/compiler/test-linkage.cc b/test/cctest/compiler/test-linkage.cc |
index 6722f59d600042ababd50964804ef60ec217d644..a3da44036cff883040beb18b00c9e1cabdf1773c 100644 |
--- a/test/cctest/compiler/test-linkage.cc |
+++ b/test/cctest/compiler/test-linkage.cc |
@@ -30,12 +30,12 @@ static Handle<JSFunction> Compile(const char* source) { |
Handle<String> source_code = isolate->factory() |
->NewStringFromUtf8(CStrVector(source)) |
.ToHandleChecked(); |
- Handle<SharedFunctionInfo> shared_function = Compiler::CompileScript( |
+ Handle<SharedFunctionInfo> shared = Compiler::GetSharedFunctionInfoForScript( |
source_code, Handle<String>(), 0, 0, v8::ScriptOriginOptions(), |
Handle<Object>(), Handle<Context>(isolate->native_context()), NULL, NULL, |
v8::ScriptCompiler::kNoCompileOptions, NOT_NATIVES_CODE, false); |
return isolate->factory()->NewFunctionFromSharedFunctionInfo( |
- shared_function, isolate->native_context()); |
+ shared, isolate->native_context()); |
} |