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

Side by Side Diff: src/elements.h

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to C++ (Closed)
Patch Set: debug check 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ELEMENTS_H_ 5 #ifndef V8_ELEMENTS_H_
6 #define V8_ELEMENTS_H_ 6 #define V8_ELEMENTS_H_
7 7
8 #include "src/elements-kind.h" 8 #include "src/elements-kind.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, 136 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args,
137 uint32_t concat_size, uint32_t result_length); 137 uint32_t concat_size, uint32_t result_length);
138 138
139 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, 139 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args,
140 uint32_t push_size) = 0; 140 uint32_t push_size) = 0;
141 141
142 virtual uint32_t Unshift(Handle<JSArray> receiver, 142 virtual uint32_t Unshift(Handle<JSArray> receiver,
143 Arguments* args, uint32_t unshift_size) = 0; 143 Arguments* args, uint32_t unshift_size) = 0;
144 144
145 virtual Handle<JSArray> Slice(Handle<JSObject> receiver, 145 virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start,
146 uint32_t start, uint32_t end) = 0; 146 uint32_t end) = 0;
147
148 virtual Handle<JSObject> Slice(Handle<JSObject> receiver, uint32_t start,
149 uint32_t end, Handle<JSObject> result) = 0;
147 150
148 virtual Handle<JSArray> Splice(Handle<JSArray> receiver, 151 virtual Handle<JSArray> Splice(Handle<JSArray> receiver,
149 uint32_t start, uint32_t delete_count, 152 uint32_t start, uint32_t delete_count,
150 Arguments* args, uint32_t add_count) = 0; 153 Arguments* args, uint32_t add_count) = 0;
151 154
152 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; 155 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0;
153 156
154 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; 157 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0;
155 158
156 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0; 159 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool allow_appending = false); 221 bool allow_appending = false);
219 222
220 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 223 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
221 Handle<JSArray> array, 224 Handle<JSArray> array,
222 Arguments* args); 225 Arguments* args);
223 226
224 } // namespace internal 227 } // namespace internal
225 } // namespace v8 228 } // namespace v8
226 229
227 #endif // V8_ELEMENTS_H_ 230 #endif // V8_ELEMENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698