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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool allow_appending = false); | 222 bool allow_appending = false); |
219 | 223 |
220 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 224 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
221 Handle<JSArray> array, | 225 Handle<JSArray> array, |
222 Arguments* args); | 226 Arguments* args); |
223 | 227 |
224 } // namespace internal | 228 } // namespace internal |
225 } // namespace v8 | 229 } // namespace v8 |
226 | 230 |
227 #endif // V8_ELEMENTS_H_ | 231 #endif // V8_ELEMENTS_H_ |
OLD | NEW |