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

Unified Diff: src/elements.h

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to C++ (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « src/builtins/builtins-typedarray.cc ('k') | src/elements.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/elements.h
diff --git a/src/elements.h b/src/elements.h
index 1a601b0222c8ed66839183672da38f3df22b7937..3fdef3d98792e8593534a801e9bfd32912a3d0b9 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -142,8 +142,11 @@ class ElementsAccessor {
virtual uint32_t Unshift(Handle<JSArray> receiver,
Arguments* args, uint32_t unshift_size) = 0;
- virtual Handle<JSArray> Slice(Handle<JSObject> receiver,
- uint32_t start, uint32_t end) = 0;
+ virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start,
+ uint32_t end) = 0;
+
+ virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start,
+ uint32_t end, Handle<JSObject> result) = 0;
virtual Handle<JSArray> Splice(Handle<JSArray> receiver,
uint32_t start, uint32_t delete_count,
« no previous file with comments | « src/builtins/builtins-typedarray.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698