Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index e484c80203fe6e9b4817c3215cc18ee95a7887e3..a4cb79d546a4bf601ad2aff719e5655a0333917c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -960,9 +960,8 @@ Handle<JSGlobalObject> Genesis::CreateNewGlobals( |
if (global_proxy_template.IsEmpty()) { |
Handle<String> name = Handle<String>(heap()->empty_string()); |
Handle<Code> code = isolate()->builtins()->Illegal(); |
- global_proxy_function = |
- factory()->NewFunction(name, code, JS_GLOBAL_PROXY_TYPE, |
- JSGlobalProxy::kSizeWithInternalFields); |
+ global_proxy_function = factory()->NewFunction( |
+ name, code, JS_GLOBAL_PROXY_TYPE, JSGlobalProxy::kSize); |
} else { |
Handle<ObjectTemplateInfo> data = |
v8::Utils::OpenHandle(*global_proxy_template); |
@@ -4495,11 +4494,9 @@ Genesis::Genesis(Isolate* isolate, |
Handle<JSFunction> global_proxy_function = |
isolate->factory()->NewFunctionFromSharedFunctionInfo( |
initial_map, shared, factory()->undefined_value()); |
- DCHECK_EQ(global_proxy_data->internal_field_count(), |
- v8::Context::kProxyInternalFieldCount); |
+ DCHECK_EQ(global_proxy_data->internal_field_count(), 0); |
Handle<Map> global_proxy_map = isolate->factory()->NewMap( |
- JS_GLOBAL_PROXY_TYPE, JSGlobalProxy::kSizeWithInternalFields, |
- FAST_HOLEY_SMI_ELEMENTS); |
+ JS_GLOBAL_PROXY_TYPE, JSGlobalProxy::kSize, FAST_HOLEY_SMI_ELEMENTS); |
JSFunction::SetInitialMap(global_proxy_function, global_proxy_map, |
factory()->null_value()); |
global_proxy_map->set_is_access_check_needed(true); |