Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index e77dd97ebf12ae9f50781351b8c8df26a1fb9e1f..aef94282cac24c616d7209258742bb9c929cb18a 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1448,7 +1448,7 @@ bool Genesis::CompileScriptCached(Isolate* isolate, |
Handle<String> script_name = |
factory->NewStringFromUtf8(name).ToHandleChecked(); |
function_info = Compiler::CompileScript( |
- source, script_name, 0, 0, false, top_context, extension, NULL, |
+ source, script_name, 0, 0, false, false, top_context, extension, NULL, |
ScriptCompiler::kNoCompileOptions, |
use_runtime_context ? NATIVES_CODE : NOT_NATIVES_CODE); |
if (function_info.is_null()) return false; |
@@ -1764,7 +1764,7 @@ bool Genesis::InstallNatives() { |
native_context()->set_script_function(*script_fun); |
Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); |
- Map::EnsureDescriptorSlack(script_map, 14); |
+ Map::EnsureDescriptorSlack(script_map, 15); |
PropertyAttributes attribs = |
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); |
@@ -1892,6 +1892,15 @@ bool Genesis::InstallNatives() { |
script_map->AppendDescriptor(&d); |
} |
+ Handle<AccessorInfo> script_is_embedder_debug_script = |
+ Accessors::ScriptIsEmbedderDebugScriptInfo(isolate(), attribs); |
+ { |
+ AccessorConstantDescriptor d( |
+ Handle<Name>(Name::cast(script_is_embedder_debug_script->name())), |
+ script_is_embedder_debug_script, attribs); |
+ script_map->AppendDescriptor(&d); |
+ } |
+ |
// Allocate the empty script. |
Handle<Script> script = factory()->NewScript(factory()->empty_string()); |
script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |