Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index d4187faaaddd512d3f6bf4eb51d16d2515e425cc..1a9a501e1c37fd619b486038dac1e1307e7bf1bb 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -130,6 +130,40 @@ FieldAccess AccessBuilder::ForJSFunctionNextFunctionLink() { |
} |
// static |
+FieldAccess AccessBuilder::ForJSGeneratorObjectContext() { |
+ FieldAccess access = {kTaggedBase, |
+ JSGeneratorObject::kContextOffset, |
+ Handle<Name>(), |
+ Type::Internal(), |
+ MachineType::AnyTagged(), |
+ kPointerWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSGeneratorObjectContinuation() { |
+ TypeCache const& type_cache = TypeCache::Get(); |
+ FieldAccess access = {kTaggedBase, |
+ JSGeneratorObject::kContinuationOffset, |
+ Handle<Name>(), |
+ type_cache.kSmi, |
+ MachineType::AnyTagged(), |
+ kNoWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSGeneratorObjectOperandStack() { |
+ FieldAccess access = {kTaggedBase, |
+ JSGeneratorObject::kOperandStackOffset, |
+ Handle<Name>(), |
+ Type::Internal(), |
+ MachineType::AnyTagged(), |
+ kPointerWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
FieldAccess AccessBuilder::ForJSArrayLength(ElementsKind elements_kind) { |
TypeCache const& type_cache = TypeCache::Get(); |
FieldAccess access = {kTaggedBase, |