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

Unified Diff: src/objects-inl.h

Issue 2271993002: Chain ScopeInfos together (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase 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
« no previous file with comments | « 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 6cee925df2ccbf2d00c4c8c0b45ce2a5d0bb577a..150e7cfe05124b718f0948125dacc3e74e1f46c8 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:
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698