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: |