Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: src/objects.h

Issue 2431223005: Implement DefineOwnProperty for TypedArrays (Closed)
Patch Set: formatting fixes Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | test/mjsunit/element-accessor.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698