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

Side by Side Diff: src/elements.h

Issue 2761453002: [typedarrays] Implement %TypedArray%.prototype.reverse in C++ (Closed)
Patch Set: rebase 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
« no previous file with comments | « src/builtins/builtins-typedarray.cc ('k') | src/elements.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate, 173 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate,
174 Handle<JSObject> receiver, 174 Handle<JSObject> receiver,
175 Handle<Object> value, uint32_t start, 175 Handle<Object> value, uint32_t start,
176 uint32_t length) = 0; 176 uint32_t length) = 0;
177 177
178 virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate, 178 virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate,
179 Handle<JSObject> receiver, 179 Handle<JSObject> receiver,
180 Handle<Object> value, 180 Handle<Object> value,
181 uint32_t start) = 0; 181 uint32_t start) = 0;
182 182
183 virtual void Reverse(JSObject* receiver) = 0;
184
183 virtual void CopyElements(Handle<FixedArrayBase> source, 185 virtual void CopyElements(Handle<FixedArrayBase> source,
184 ElementsKind source_kind, 186 ElementsKind source_kind,
185 Handle<FixedArrayBase> destination, int size) = 0; 187 Handle<FixedArrayBase> destination, int size) = 0;
186 188
187 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate, 189 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate,
188 Handle<JSArray> array) = 0; 190 Handle<JSArray> array) = 0;
189 191
190 protected: 192 protected:
191 friend class LookupIterator; 193 friend class LookupIterator;
192 194
(...skipping 29 matching lines...) Expand all
222 bool allow_appending = false); 224 bool allow_appending = false);
223 225
224 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 226 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
225 Handle<JSArray> array, 227 Handle<JSArray> array,
226 Arguments* args); 228 Arguments* args);
227 229
228 } // namespace internal 230 } // namespace internal
229 } // namespace v8 231 } // namespace v8
230 232
231 #endif // V8_ELEMENTS_H_ 233 #endif // V8_ELEMENTS_H_
OLDNEW
« 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