Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 197bf8162c88d951d202846e69f762fc02960b82..d0c7fc408e17320f058bd2bfe2a0b4c3a8505fd3 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -896,7 +896,7 @@ int CountBuiltins() { |
static Handle<SharedFunctionInfo> CompileScript( |
Isolate* isolate, Handle<String> source, Handle<String> name, |
ScriptData** cached_data, v8::ScriptCompiler::CompileOptions options) { |
- return Compiler::CompileScript( |
+ return Compiler::GetSharedFunctionInfoForScript( |
source, name, 0, 0, v8::ScriptOriginOptions(), Handle<Object>(), |
Handle<Context>(isolate->native_context()), NULL, cached_data, options, |
NOT_NATIVES_CODE, false); |
@@ -1761,7 +1761,7 @@ TEST(Regress503552) { |
Handle<String> source = isolate->factory()->NewStringFromAsciiChecked( |
"function f() {} function g() {}"); |
ScriptData* script_data = NULL; |
- Handle<SharedFunctionInfo> shared = Compiler::CompileScript( |
+ Handle<SharedFunctionInfo> shared = Compiler::GetSharedFunctionInfoForScript( |
source, Handle<String>(), 0, 0, v8::ScriptOriginOptions(), |
Handle<Object>(), Handle<Context>(isolate->native_context()), NULL, |
&script_data, v8::ScriptCompiler::kProduceCodeCache, NOT_NATIVES_CODE, |