| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |