Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 0e5b4e1a71e36768ed02738eb67edc42575f6591..fa7c3d05488df9a6b9e0875b6b81786e969c0b95 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -792,6 +792,9 @@ bool HeapObject::IsScopeInfo() const { |
return map() == GetHeap()->scope_info_map(); |
} |
+bool HeapObject::IsModuleInfo() const { |
+ return map() == GetHeap()->module_info_map(); |
+} |
TYPE_CHECKER(JSBoundFunction, JS_BOUND_FUNCTION_TYPE) |
TYPE_CHECKER(JSFunction, JS_FUNCTION_TYPE) |
@@ -3281,6 +3284,7 @@ CAST_ACCESSOR(JSWeakMap) |
CAST_ACCESSOR(JSWeakSet) |
CAST_ACCESSOR(LayoutDescriptor) |
CAST_ACCESSOR(Map) |
+CAST_ACCESSOR(ModuleInfo) |
CAST_ACCESSOR(Name) |
CAST_ACCESSOR(NameDictionary) |
CAST_ACCESSOR(NormalizedMapCache) |
@@ -7916,6 +7920,13 @@ bool ScopeInfo::HasSimpleParameters() { |
FOR_EACH_SCOPE_INFO_NUMERIC_FIELD(SCOPE_INFO_FIELD_ACCESSORS) |
#undef SCOPE_INFO_FIELD_ACCESSORS |
+FixedArray* ModuleInfo::special_exports() const { |
+ return FixedArray::cast(get(kSpecialExportsIndex)); |
+} |
+ |
+FixedArray* ModuleInfo::regular_exports() const { |
+ return FixedArray::cast(get(kRegularExportsIndex)); |
+} |
void Map::ClearCodeCache(Heap* heap) { |
// No write barrier is needed since empty_fixed_array is not in new space. |