Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 5cde67d7e97e17560c8e22553a0909eb20f38532..0fa602e017bd9bfa3c1c6d08df3aee21946a2ff2 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -675,6 +675,7 @@ bool Object::IsBoolean() { |
TYPE_CHECKER(JSArray, JS_ARRAY_TYPE) |
TYPE_CHECKER(JSArrayBuffer, JS_ARRAY_BUFFER_TYPE) |
+TYPE_CHECKER(JSTypedArray, JS_TYPED_ARRAY_TYPE) |
TYPE_CHECKER(JSRegExp, JS_REGEXP_TYPE) |
@@ -1602,6 +1603,8 @@ int JSObject::GetHeaderSize() { |
return JSArray::kSize; |
case JS_ARRAY_BUFFER_TYPE: |
return JSArrayBuffer::kSize; |
+ case JS_TYPED_ARRAY_TYPE: |
+ return JSTypedArray::kSize; |
case JS_SET_TYPE: |
return JSSet::kSize; |
case JS_MAP_TYPE: |
@@ -2489,6 +2492,7 @@ CAST_ACCESSOR(JSBuiltinsObject) |
CAST_ACCESSOR(Code) |
CAST_ACCESSOR(JSArray) |
CAST_ACCESSOR(JSArrayBuffer) |
+CAST_ACCESSOR(JSTypedArray) |
CAST_ACCESSOR(JSRegExp) |
CAST_ACCESSOR(JSProxy) |
CAST_ACCESSOR(JSFunctionProxy) |
@@ -5191,6 +5195,12 @@ void JSArrayBuffer::set_backing_store(void* value, WriteBarrierMode mode) { |
ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) |
+ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) |
+ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) |
+ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) |
+ACCESSORS(JSTypedArray, length, Object, kLengthOffset) |
+ |
+ |
ACCESSORS(JSRegExp, data, Object, kDataOffset) |