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

Unified Diff: src/objects-inl.h

Issue 2592633002: Implement header size calculation for array iterators. (Closed)
Patch Set: 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 | « no previous file | test/mjsunit/regress/regress-674232.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 e3b47427e38251435c4d4ab36f7498d7ec34029b..e3b0c8efe700816979f7a7c6aece22ba39874832 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2165,6 +2165,10 @@ int JSObject::GetHeaderSize(InstanceType type) {
case JS_MODULE_NAMESPACE_TYPE:
return JSModuleNamespace::kSize;
default:
+ if (type >= FIRST_ARRAY_ITERATOR_TYPE &&
+ type <= LAST_ARRAY_ITERATOR_TYPE) {
+ return JSArrayIterator::kSize;
+ }
UNREACHABLE();
return 0;
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-674232.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698