Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index f99f51ae236e1166cb09462b0141b3f939186405..530143440d52e4726bbceeabc2fe495023c7886e 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -548,6 +548,24 @@ FieldAccess AccessBuilder::ForJSGlobalObjectNativeContext() { |
return access; |
} |
+// static |
+FieldAccess AccessBuilder::ForJSStringIteratorString() { |
+ FieldAccess access = { |
+ kTaggedBase, JSStringIterator::kStringOffset, Handle<Name>(), |
+ Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSStringIteratorIndex() { |
+ FieldAccess access = {kTaggedBase, |
+ JSStringIterator::kNextIndexOffset, |
+ Handle<Name>(), |
+ TypeCache::Get().kStringLengthType, |
+ MachineType::TaggedSigned(), |
+ kNoWriteBarrier}; |
+ return access; |
+} |
// static |
FieldAccess AccessBuilder::ForValue() { |