Index: src/ast/scopeinfo.cc |
diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc |
index 316f01e05d86510a5654cde48cef6542dc5eac8f..1e3c1866a7ffa060877e21eeb159e45ce0524ff8 100644 |
--- a/src/ast/scopeinfo.cc |
+++ b/src/ast/scopeinfo.cc |
@@ -938,6 +938,27 @@ Handle<ModuleInfo> ModuleInfo::New(Isolate* isolate, Zone* zone, |
return result; |
} |
+int ModuleInfo::RegularExportCount() const { |
+ DCHECK_EQ(regular_exports()->length() % kRegularExportLength, 0); |
+ return regular_exports()->length() / kRegularExportLength; |
+} |
+ |
+String* ModuleInfo::RegularExportLocalName(int i) const { |
+ return String::cast(regular_exports()->get(i * kRegularExportLength + |
+ kRegularExportLocalNameOffset)); |
+} |
+ |
+int ModuleInfo::RegularExportCellIndex(int i) const { |
+ return Smi::cast(regular_exports()->get(i * kRegularExportLength + |
+ kRegularExportCellIndexOffset)) |
+ ->value(); |
+} |
+ |
+FixedArray* ModuleInfo::RegularExportExportNames(int i) const { |
+ return FixedArray::cast(regular_exports()->get( |
+ i * kRegularExportLength + kRegularExportExportNamesOffset)); |
+} |
+ |
Handle<ModuleInfoEntry> ModuleInfo::LookupRegularImport( |
Handle<ModuleInfo> info, Handle<String> local_name) { |
Isolate* isolate = info->GetIsolate(); |