| OLD | NEW |
| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 174 virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate, |
| 175 Handle<JSObject> receiver, | 175 Handle<JSObject> receiver, |
| 176 Handle<Object> value, | 176 Handle<Object> value, |
| 177 uint32_t start) = 0; | 177 uint32_t start) = 0; |
| 178 | 178 |
| 179 virtual void Reverse(Handle<JSObject> receiver) = 0; |
| 180 |
| 179 virtual void CopyElements(Handle<FixedArrayBase> source, | 181 virtual void CopyElements(Handle<FixedArrayBase> source, |
| 180 ElementsKind source_kind, | 182 ElementsKind source_kind, |
| 181 Handle<FixedArrayBase> destination, int size) = 0; | 183 Handle<FixedArrayBase> destination, int size) = 0; |
| 182 | 184 |
| 183 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate, | 185 virtual Handle<FixedArray> CreateListFromArray(Isolate* isolate, |
| 184 Handle<JSArray> array) = 0; | 186 Handle<JSArray> array) = 0; |
| 185 | 187 |
| 186 protected: | 188 protected: |
| 187 friend class LookupIterator; | 189 friend class LookupIterator; |
| 188 | 190 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 218 bool allow_appending = false); | 220 bool allow_appending = false); |
| 219 | 221 |
| 220 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 222 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
| 221 Handle<JSArray> array, | 223 Handle<JSArray> array, |
| 222 Arguments* args); | 224 Arguments* args); |
| 223 | 225 |
| 224 } // namespace internal | 226 } // namespace internal |
| 225 } // namespace v8 | 227 } // namespace v8 |
| 226 | 228 |
| 227 #endif // V8_ELEMENTS_H_ | 229 #endif // V8_ELEMENTS_H_ |
| OLD | NEW |