Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index a14c626beda7d587d2889ba6287cd6013ab0503a..fb6ac8d678289925530f6e2fa80fcd7886cf91da 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -695,6 +695,14 @@ 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(JSDataView, JS_DATA_VIEW_TYPE) |
+ |
+ |
+bool Object::IsJSArrayBufferView() { |
+ return IsJSDataView() || IsJSTypedArray(); |
+} |
+ |
+ |
TYPE_CHECKER(JSRegExp, JS_REGEXP_TYPE) |
@@ -1673,6 +1681,8 @@ int JSObject::GetHeaderSize() { |
return JSArrayBuffer::kSize; |
case JS_TYPED_ARRAY_TYPE: |
return JSTypedArray::kSize; |
+ case JS_DATA_VIEW_TYPE: |
+ return JSDataView::kSize; |
case JS_SET_TYPE: |
return JSSet::kSize; |
case JS_MAP_TYPE: |
@@ -2551,7 +2561,9 @@ CAST_ACCESSOR(JSBuiltinsObject) |
CAST_ACCESSOR(Code) |
CAST_ACCESSOR(JSArray) |
CAST_ACCESSOR(JSArrayBuffer) |
+CAST_ACCESSOR(JSArrayBufferView) |
CAST_ACCESSOR(JSTypedArray) |
+CAST_ACCESSOR(JSDataView) |
CAST_ACCESSOR(JSRegExp) |
CAST_ACCESSOR(JSProxy) |
CAST_ACCESSOR(JSFunctionProxy) |
@@ -5298,14 +5310,14 @@ void JSArrayBuffer::set_is_external(bool value) { |
ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) |
-ACCESSORS(JSArrayBuffer, weak_first_array, Object, kWeakFirstArrayOffset) |
+ACCESSORS(JSArrayBuffer, weak_first_view, Object, kWeakFirstViewOffset) |
-ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) |
-ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) |
-ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) |
+ACCESSORS(JSArrayBufferView, buffer, Object, kBufferOffset) |
+ACCESSORS(JSArrayBufferView, byte_offset, Object, kByteOffsetOffset) |
+ACCESSORS(JSArrayBufferView, byte_length, Object, kByteLengthOffset) |
+ACCESSORS(JSArrayBufferView, weak_next, Object, kWeakNextOffset) |
ACCESSORS(JSTypedArray, length, Object, kLengthOffset) |
-ACCESSORS(JSTypedArray, weak_next, Object, kWeakNextOffset) |
ACCESSORS(JSRegExp, data, Object, kDataOffset) |