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

Side by Side Diff: src/objects.h

Issue 2814683002: [builtins] Implement %TypedArray%.prototype.map in the CSA (Closed)
Patch Set: switched to BIND macro Created 3 years, 8 months 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 9436 matching lines...) Expand 10 before | Expand all | Expand 10 after
9447 PropertyDescriptor* desc, ShouldThrow should_throw); 9447 PropertyDescriptor* desc, ShouldThrow should_throw);
9448 9448
9449 DECLARE_CAST(JSTypedArray) 9449 DECLARE_CAST(JSTypedArray)
9450 9450
9451 ExternalArrayType type(); 9451 ExternalArrayType type();
9452 V8_EXPORT_PRIVATE size_t element_size(); 9452 V8_EXPORT_PRIVATE size_t element_size();
9453 9453
9454 Handle<JSArrayBuffer> GetBuffer(); 9454 Handle<JSArrayBuffer> GetBuffer();
9455 9455
9456 static inline MaybeHandle<JSTypedArray> Validate(Isolate* isolate, 9456 static inline MaybeHandle<JSTypedArray> Validate(Isolate* isolate,
9457 Handle<Object> receiver, 9457 Handle<Object> receiver);
9458 const char* method_name); 9458 // ES7 section 22.2.4.6 Create ( constructor, argumentList )
9459 static MaybeHandle<JSTypedArray> Create(Isolate* isolate,
9460 Handle<JSFunction> default_ctor,
9461 int argc, Handle<Object>* argv);
9462 // ES7 section 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList )
9463 static MaybeHandle<JSTypedArray> SpeciesCreate(Isolate* isolate,
9464 Handle<JSTypedArray> exemplar,
9465 int argc,
9466 Handle<Object>* argv);
9459 9467
9460 // Dispatched behavior. 9468 // Dispatched behavior.
9461 DECLARE_PRINTER(JSTypedArray) 9469 DECLARE_PRINTER(JSTypedArray)
9462 DECLARE_VERIFIER(JSTypedArray) 9470 DECLARE_VERIFIER(JSTypedArray)
9463 9471
9464 static const int kLengthOffset = kViewSize + kPointerSize; 9472 static const int kLengthOffset = kViewSize + kPointerSize;
9465 static const int kSize = kLengthOffset + kPointerSize; 9473 static const int kSize = kLengthOffset + kPointerSize;
9466 9474
9467 static const int kSizeWithEmbedderFields = 9475 static const int kSizeWithEmbedderFields =
9468 kSize + v8::ArrayBufferView::kEmbedderFieldCount * kPointerSize; 9476 kSize + v8::ArrayBufferView::kEmbedderFieldCount * kPointerSize;
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
10249 } 10257 }
10250 }; 10258 };
10251 10259
10252 10260
10253 } // NOLINT, false-positive due to second-order macros. 10261 } // NOLINT, false-positive due to second-order macros.
10254 } // NOLINT, false-positive due to second-order macros. 10262 } // NOLINT, false-positive due to second-order macros.
10255 10263
10256 #include "src/objects/object-macros-undef.h" 10264 #include "src/objects/object-macros-undef.h"
10257 10265
10258 #endif // V8_OBJECTS_H_ 10266 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698