Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index 976e051527c1b79a16848c3dc3a4990be170ca9d..1ec6ccf4b50227c61b7cb468ea9e894da6fbb5b0 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -216,16 +216,14 @@ FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() { |
return access; |
} |
- |
// static |
FieldAccess AccessBuilder::ForJSArrayBufferBitField() { |
- FieldAccess access = {kTaggedBase, JSArrayBuffer::kBitFieldOffset, |
- MaybeHandle<Name>(), TypeCache::Get().kInt8, |
- MachineType::Int8(), kNoWriteBarrier}; |
+ FieldAccess access = {kTaggedBase, JSArrayBuffer::kBitFieldOffset, |
+ MaybeHandle<Name>(), TypeCache::Get().kUint8, |
+ MachineType::Uint32(), kNoWriteBarrier}; |
return access; |
} |
- |
// static |
FieldAccess AccessBuilder::ForJSArrayBufferViewBuffer() { |
FieldAccess access = {kTaggedBase, |
@@ -237,6 +235,38 @@ FieldAccess AccessBuilder::ForJSArrayBufferViewBuffer() { |
return access; |
} |
+// static |
+FieldAccess AccessBuilder::ForJSArrayBufferViewByteLength() { |
+ FieldAccess access = {kTaggedBase, |
+ JSArrayBufferView::kByteLengthOffset, |
+ MaybeHandle<Name>(), |
+ TypeCache::Get().kPositiveInteger, |
+ MachineType::AnyTagged(), |
+ kFullWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSArrayBufferViewByteOffset() { |
+ FieldAccess access = {kTaggedBase, |
+ JSArrayBufferView::kByteOffsetOffset, |
+ MaybeHandle<Name>(), |
+ TypeCache::Get().kPositiveInteger, |
+ MachineType::AnyTagged(), |
+ kFullWriteBarrier}; |
+ return access; |
+} |
+ |
+// static |
+FieldAccess AccessBuilder::ForJSTypedArrayLength() { |
+ FieldAccess access = {kTaggedBase, |
+ JSTypedArray::kLengthOffset, |
+ MaybeHandle<Name>(), |
+ TypeCache::Get().kJSTypedArrayLengthType, |
+ MachineType::AnyTagged(), |
+ kNoWriteBarrier}; |
+ return access; |
+} |
// static |
FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { |