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

Unified Diff: src/objects-inl.h

Issue 2271993002: Chain ScopeInfos together (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 3 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
« src/ast/scopes.cc ('K') | « src/objects.h ('k') | no next file » | 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 baef4cc9c9c526466ada2eadfb98e4938cf2412d..d392a6f6b29f1bf22417163b3d0fda22903516c7 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -7927,6 +7927,13 @@ FixedArray* ModuleInfo::regular_exports() const {
return FixedArray::cast(get(kRegularExportsIndex));
}
+#ifdef DEBUG
+bool ModuleInfo::Equals(ModuleInfo* other) const {
+ return get(kSpecialExportsIndex) == other->get(kSpecialExportsIndex) &&
+ get(kRegularExportsIndex) == other->get(kRegularExportsIndex);
+}
+#endif
+
void Map::ClearCodeCache(Heap* heap) {
// No write barrier is needed since empty_fixed_array is not in new space.
// Please note this function is used during marking:
« src/ast/scopes.cc ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698