OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 10955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10966 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBufferView); | 10966 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBufferView); |
10967 }; | 10967 }; |
10968 | 10968 |
10969 | 10969 |
10970 class JSTypedArray: public JSArrayBufferView { | 10970 class JSTypedArray: public JSArrayBufferView { |
10971 public: | 10971 public: |
10972 // [length]: length of typed array in elements. | 10972 // [length]: length of typed array in elements. |
10973 DECL_ACCESSORS(length, Object) | 10973 DECL_ACCESSORS(length, Object) |
10974 inline uint32_t length_value() const; | 10974 inline uint32_t length_value() const; |
10975 | 10975 |
| 10976 // ES6 9.4.5.3 |
| 10977 MUST_USE_RESULT static Maybe<bool> DefineOwnProperty( |
| 10978 Isolate* isolate, Handle<JSTypedArray> o, Handle<Object> key, |
| 10979 PropertyDescriptor* desc, ShouldThrow should_throw); |
| 10980 |
10976 DECLARE_CAST(JSTypedArray) | 10981 DECLARE_CAST(JSTypedArray) |
10977 | 10982 |
10978 ExternalArrayType type(); | 10983 ExternalArrayType type(); |
10979 V8_EXPORT_PRIVATE size_t element_size(); | 10984 V8_EXPORT_PRIVATE size_t element_size(); |
10980 | 10985 |
10981 Handle<JSArrayBuffer> GetBuffer(); | 10986 Handle<JSArrayBuffer> GetBuffer(); |
10982 | 10987 |
10983 // Dispatched behavior. | 10988 // Dispatched behavior. |
10984 DECLARE_PRINTER(JSTypedArray) | 10989 DECLARE_PRINTER(JSTypedArray) |
10985 DECLARE_VERIFIER(JSTypedArray) | 10990 DECLARE_VERIFIER(JSTypedArray) |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11729 } | 11734 } |
11730 return value; | 11735 return value; |
11731 } | 11736 } |
11732 }; | 11737 }; |
11733 | 11738 |
11734 | 11739 |
11735 } // NOLINT, false-positive due to second-order macros. | 11740 } // NOLINT, false-positive due to second-order macros. |
11736 } // NOLINT, false-positive due to second-order macros. | 11741 } // NOLINT, false-positive due to second-order macros. |
11737 | 11742 |
11738 #endif // V8_OBJECTS_H_ | 11743 #endif // V8_OBJECTS_H_ |
OLD | NEW |