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

Unified Diff: src/objects-inl.h

Issue 2357003002: [modules] Also (de-)serialize imports. (Closed)
Patch Set: 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 e912ed20ee7796c7afc18dd4d9ec327ecda66607..669d49213b256f7ba3784863ad81822a512c16f3 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -7959,10 +7959,20 @@ FixedArray* ModuleInfo::regular_exports() const {
return FixedArray::cast(get(kRegularExportsIndex));
}
+FixedArray* ModuleInfo::regular_imports() const {
+ return FixedArray::cast(get(kRegularImportsIndex));
+}
+
+FixedArray* ModuleInfo::special_imports() const {
+ return FixedArray::cast(get(kSpecialImportsIndex));
+}
+
#ifdef DEBUG
bool ModuleInfo::Equals(ModuleInfo* other) const {
- return get(kSpecialExportsIndex) == other->get(kSpecialExportsIndex) &&
- get(kRegularExportsIndex) == other->get(kRegularExportsIndex);
+ return regular_exports() == other->regular_exports() &&
+ regular_imports() == other->regular_imports() &&
+ special_exports() == other->special_exports() &&
+ special_imports() == other->special_imports();
}
#endif
« 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