Index: src/ast/modules.cc |
diff --git a/src/ast/modules.cc b/src/ast/modules.cc |
index e31d253dc2913ec9efe85be4eff69a0a50ee73f3..339d64c580f03976e84f27124530cd8a1a2e3954 100644 |
--- a/src/ast/modules.cc |
+++ b/src/ast/modules.cc |
@@ -212,6 +212,13 @@ void ModuleDescriptor::MakeIndirectExportsExplicit(Zone* zone) { |
} |
} |
+ModuleDescriptor::CellIndexKind ModuleDescriptor::GetCellIndexKind( |
+ int cell_index) { |
+ if (cell_index > 0) return kExport; |
+ if (cell_index < 0) return kImport; |
+ return kInvalid; |
+} |
+ |
void ModuleDescriptor::AssignCellIndices() { |
int export_index = 1; |
for (auto it = regular_exports_.begin(); it != regular_exports_.end();) { |