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

Unified Diff: src/types.cc

Issue 930983003: Reduce field type tracking to a single stable map per field. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months 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/cctest/test-migrations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/types.cc
diff --git a/src/types.cc b/src/types.cc
index c1225f396ec83985f57e64506d8718c7d3ecb2a1..37386cd82f6012e1ccf05caabb6e19fcd4b6664c 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -575,10 +575,7 @@ bool TypeImpl<Config>::NowIs(TypeImpl* that) {
template<class Config>
bool TypeImpl<Config>::NowStable() {
DisallowHeapAllocation no_allocation;
- for (Iterator<i::Map> it = this->Classes(); !it.Done(); it.Advance()) {
- if (!it.Current()->is_stable()) return false;
- }
- return true;
+ return !this->IsClass() || this->AsClass()->Map()->is_stable();
}
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-migrations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698