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

Unified Diff: src/objects.h

Issue 2814683002: [builtins] Implement %TypedArray%.prototype.map in the CSA (Closed)
Patch Set: added spec comments 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 side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 0c03575c1e74b792c729d8fc67ad43fdc13153cd..ff9e8003319ba12d712544871c2febec776f6c19 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -9454,8 +9454,16 @@ class JSTypedArray: public JSArrayBufferView {
Handle<JSArrayBuffer> GetBuffer();
static inline MaybeHandle<JSTypedArray> Validate(Isolate* isolate,
- Handle<Object> receiver,
- const char* method_name);
+ Handle<Object> receiver);
+ // ES7 section 22.2.4.6 Create ( constructor, argumentList )
+ static MaybeHandle<JSTypedArray> Create(Isolate* isolate,
+ Handle<JSFunction> default_ctor,
+ int argc, Handle<Object>* argv);
+ // ES7 section 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList )
+ static MaybeHandle<JSTypedArray> SpeciesCreate(Isolate* isolate,
+ Handle<JSTypedArray> exemplar,
+ int argc,
+ Handle<Object>* argv);
// Dispatched behavior.
DECLARE_PRINTER(JSTypedArray)

Powered by Google App Engine
This is Rietveld 408576698