| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; | 152 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; |
| 153 | 153 |
| 154 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; | 154 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; |
| 155 | 155 |
| 156 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0; | 156 virtual Handle<SeededNumberDictionary> Normalize(Handle<JSObject> object) = 0; |
| 157 | 157 |
| 158 virtual uint32_t GetCapacity(JSObject* holder, | 158 virtual uint32_t GetCapacity(JSObject* holder, |
| 159 FixedArrayBase* backing_store) = 0; | 159 FixedArrayBase* backing_store) = 0; |
| 160 | 160 |
| 161 virtual Object* Fill(Isolate* isolate, Handle<JSObject> receiver, |
| 162 Handle<Object> obj_value, uint32_t start, |
| 163 uint32_t end) = 0; |
| 164 |
| 161 // Check an Object's own elements for an element (using SameValueZero | 165 // Check an Object's own elements for an element (using SameValueZero |
| 162 // semantics) | 166 // semantics) |
| 163 virtual Maybe<bool> IncludesValue(Isolate* isolate, Handle<JSObject> receiver, | 167 virtual Maybe<bool> IncludesValue(Isolate* isolate, Handle<JSObject> receiver, |
| 164 Handle<Object> value, uint32_t start, | 168 Handle<Object> value, uint32_t start, |
| 165 uint32_t length) = 0; | 169 uint32_t length) = 0; |
| 166 | 170 |
| 167 // Check an Object's own elements for the index of an element (using SameValue | 171 // Check an Object's own elements for the index of an element (using SameValue |
| 168 // semantics) | 172 // semantics) |
| 169 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate, | 173 virtual Maybe<int64_t> IndexOfValue(Isolate* isolate, |
| 170 Handle<JSObject> receiver, | 174 Handle<JSObject> receiver, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool allow_appending = false); | 217 bool allow_appending = false); |
| 214 | 218 |
| 215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 219 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
| 216 Handle<JSArray> array, | 220 Handle<JSArray> array, |
| 217 Arguments* args); | 221 Arguments* args); |
| 218 | 222 |
| 219 } // namespace internal | 223 } // namespace internal |
| 220 } // namespace v8 | 224 } // namespace v8 |
| 221 | 225 |
| 222 #endif // V8_ELEMENTS_H_ | 226 #endif // V8_ELEMENTS_H_ |
| OLD | NEW |