Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index c2ceda7f46259fb047e2296694be92dab0d8cef1..0a82bd42af0f8b466cbf37b863c1649c230eaeb8 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1885,10 +1885,11 @@ bool Bootstrapper::CompileNative(Isolate* isolate, Vector<const char> name, |
Handle<String> script_name = |
isolate->factory()->NewStringFromUtf8(name).ToHandleChecked(); |
- Handle<SharedFunctionInfo> function_info = Compiler::CompileScript( |
- source, script_name, 0, 0, ScriptOriginOptions(), Handle<Object>(), |
- context, NULL, NULL, ScriptCompiler::kNoCompileOptions, natives_flag, |
- false); |
+ Handle<SharedFunctionInfo> function_info = |
+ Compiler::GetSharedFunctionInfoForScript( |
+ source, script_name, 0, 0, ScriptOriginOptions(), Handle<Object>(), |
+ context, NULL, NULL, ScriptCompiler::kNoCompileOptions, natives_flag, |
+ false); |
if (function_info.is_null()) return false; |
DCHECK(context->IsNativeContext()); |
@@ -1942,7 +1943,7 @@ bool Genesis::CompileExtension(Isolate* isolate, v8::Extension* extension) { |
if (!cache->Lookup(name, &function_info)) { |
Handle<String> script_name = |
factory->NewStringFromUtf8(name).ToHandleChecked(); |
- function_info = Compiler::CompileScript( |
+ function_info = Compiler::GetSharedFunctionInfoForScript( |
source, script_name, 0, 0, ScriptOriginOptions(), Handle<Object>(), |
context, extension, NULL, ScriptCompiler::kNoCompileOptions, |
EXTENSION_CODE, false); |