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

Side by Side Diff: src/elements.h

Issue 2744283002: [typedarrays] Implement %TypedArray%.prototype.lastIndexOf in C++ (Closed)
Patch Set: Correct integral value 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
« 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 Handle<Object> value, uint32_t start, 164 Handle<Object> value, uint32_t start,
165 uint32_t length) = 0; 165 uint32_t length) = 0;
166 166
167 // Check an Object's own elements for the index of an element (using SameValue 167 // Check an Object's own elements for the index of an element (using SameValue
168 // semantics) 168 // semantics)
169 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate, 169 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate,
170 Handle<JSObject> receiver, 170 Handle<JSObject> receiver,
171 Handle<Object> value, uint32_t start, 171 Handle<Object> value, uint32_t start,
172 uint32_t length) = 0; 172 uint32_t length) = 0;
173 173
174 virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate,
175 Handle<JSObject> receiver,
176 Handle<Object> value,
177 uint32_t start) = 0;
178
174 virtual void CopyElements(Handle<FixedArrayBase> source, 179 virtual void CopyElements(Handle<FixedArrayBase> source,
175 ElementsKind source_kind, 180 ElementsKind source_kind,
176 Handle<FixedArrayBase> destination, int size) = 0; 181 Handle<FixedArrayBase> destination, int size) = 0;
177 182
178 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate, 183 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate,
179 Handle<JSArray> array) = 0; 184 Handle<JSArray> array) = 0;
180 185
181 protected: 186 protected:
182 friend class LookupIterator; 187 friend class LookupIterator;
183 188
(...skipping 29 matching lines...) Expand all
213 bool allow_appending = false); 218 bool allow_appending = false);
214 219
215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 220 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
216 Handle<JSArray> array, 221 Handle<JSArray> array,
217 Arguments* args); 222 Arguments* args);
218 223
219 } // namespace internal 224 } // namespace internal
220 } // namespace v8 225 } // namespace v8
221 226
222 #endif // V8_ELEMENTS_H_ 227 #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