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

Unified Diff: src/objects-inl.h

Issue 2554343002: [runtime] Add instance size check for CheckEquivalent(). (Closed)
Patch Set: Fix the header size calculation for modules. Created 4 years 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/objects.cc ('k') | test/mjsunit/wasm/add-getters.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 2fb23342ee7f4448bd8facbfb015a000bc0cadbc..3697e551e210742650d5cbd5319375d6a25110bd 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2108,6 +2108,8 @@ int JSObject::GetHeaderSize(InstanceType type) {
return JSStringIterator::kSize;
case JS_FIXED_ARRAY_ITERATOR_TYPE:
return JSFixedArrayIterator::kHeaderSize;
+ case JS_MODULE_NAMESPACE_TYPE:
+ return JSModuleNamespace::kSize;
default:
UNREACHABLE();
return 0;
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/wasm/add-getters.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698