Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: src/api-natives.cc

Issue 2475433008: Set global proxy internal field count based on the global object template. (Closed)
Patch Set: oops Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api-natives.cc
diff --git a/src/api-natives.cc b/src/api-natives.cc
index 5a78003140010b8b4dbb5ea5c74462371039300e..b0212c063a0bb0f31ae96e517be50e5c6f5765d8 100644
--- a/src/api-natives.cc
+++ b/src/api-natives.cc
@@ -640,8 +640,7 @@ Handle<JSFunction> ApiNatives::CreateApiFunction(
break;
case GlobalProxyType:
type = JS_GLOBAL_PROXY_TYPE;
- instance_size += JSGlobalProxy::kSize;
- DCHECK_EQ(instance_size, JSGlobalProxy::kSizeWithInternalFields);
+ instance_size += JSGlobalProxy::kHeaderSize;
break;
default:
UNREACHABLE();
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698