Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index 530143440d52e4726bbceeabc2fe495023c7886e..31b355d59c908e43031f83cab19ce0a6222f1ec4 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -433,6 +433,27 @@ FieldAccess AccessBuilder::ForMapPrototype() { |
return access; |
} |
+// static |
+FieldAccess AccessBuilder::ForModuleRegularExports() { |
+ FieldAccess access = {kTaggedBase, |
+ Module::kRegularExportsOffset, |
+ Handle<Name>(), |
+ Type::OtherInternal(), |
+ MachineType::TaggedPointer(), |
+ kPointerWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForModuleRegularImports() { |
+ FieldAccess access = {kTaggedBase, |
+ Module::kRegularImportsOffset, |
+ Handle<Name>(), |
+ Type::OtherInternal(), |
+ MachineType::TaggedPointer(), |
+ kPointerWriteBarrier}; |
+ return access; |
+} |
// static |
FieldAccess AccessBuilder::ForNameHashField() { |
@@ -611,6 +632,14 @@ FieldAccess AccessBuilder::ForFixedArraySlot(size_t index) { |
// static |
+FieldAccess AccessBuilder::ForCellValue() { |
+ FieldAccess access = { |
+ kTaggedBase, Cell::kValueOffset, Handle<Name>(), |
+ Type::Any(), MachineType::AnyTagged(), kFullWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
FieldAccess AccessBuilder::ForContextSlot(size_t index) { |
int offset = Context::kHeaderSize + static_cast<int>(index) * kPointerSize; |
DCHECK_EQ(offset, |