| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index fa7c3d05488df9a6b9e0875b6b81786e969c0b95..55d121cf3935e27822b703ad4dfd0f297e4e05c9 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -792,6 +792,10 @@ bool HeapObject::IsScopeInfo() const {
|
| return map() == GetHeap()->scope_info_map();
|
| }
|
|
|
| +bool HeapObject::IsModuleInfoEntry() const {
|
| + return map() == GetHeap()->module_info_entry_map();
|
| +}
|
| +
|
| bool HeapObject::IsModuleInfo() const {
|
| return map() == GetHeap()->module_info_map();
|
| }
|
| @@ -3271,6 +3275,7 @@ CAST_ACCESSOR(JSGlobalProxy)
|
| CAST_ACCESSOR(JSMap)
|
| CAST_ACCESSOR(JSMapIterator)
|
| CAST_ACCESSOR(JSMessageObject)
|
| +CAST_ACCESSOR(JSModule)
|
| CAST_ACCESSOR(JSObject)
|
| CAST_ACCESSOR(JSProxy)
|
| CAST_ACCESSOR(JSReceiver)
|
| @@ -3284,6 +3289,7 @@ CAST_ACCESSOR(JSWeakMap)
|
| CAST_ACCESSOR(JSWeakSet)
|
| CAST_ACCESSOR(LayoutDescriptor)
|
| CAST_ACCESSOR(Map)
|
| +CAST_ACCESSOR(ModuleInfoEntry)
|
| CAST_ACCESSOR(ModuleInfo)
|
| CAST_ACCESSOR(Name)
|
| CAST_ACCESSOR(NameDictionary)
|
| @@ -6648,6 +6654,8 @@ bool JSGeneratorObject::is_executing() const {
|
| return continuation() == kGeneratorExecuting;
|
| }
|
|
|
| +TYPE_CHECKER(JSModule, JS_MODULE_TYPE)
|
| +
|
| ACCESSORS(JSValue, value, Object, kValueOffset)
|
|
|
|
|
| @@ -7920,6 +7928,16 @@ bool ScopeInfo::HasSimpleParameters() {
|
| FOR_EACH_SCOPE_INFO_NUMERIC_FIELD(SCOPE_INFO_FIELD_ACCESSORS)
|
| #undef SCOPE_INFO_FIELD_ACCESSORS
|
|
|
| +Object* ModuleInfoEntry::export_name() const { return get(kExportNameIndex); }
|
| +
|
| +Object* ModuleInfoEntry::local_name() const { return get(kLocalNameIndex); }
|
| +
|
| +Object* ModuleInfoEntry::import_name() const { return get(kImportNameIndex); }
|
| +
|
| +Object* ModuleInfoEntry::module_request() const {
|
| + return get(kModuleRequestIndex);
|
| +}
|
| +
|
| FixedArray* ModuleInfo::special_exports() const {
|
| return FixedArray::cast(get(kSpecialExportsIndex));
|
| }
|
|
|