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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 inline void CollectElementIndices(Handle<JSObject> object, | 88 inline void CollectElementIndices(Handle<JSObject> object, |
89 KeyAccumulator* keys, | 89 KeyAccumulator* keys, |
90 uint32_t range = kMaxUInt32, | 90 uint32_t range = kMaxUInt32, |
91 PropertyFilter filter = ALL_PROPERTIES, | 91 PropertyFilter filter = ALL_PROPERTIES, |
92 uint32_t offset = 0) { | 92 uint32_t offset = 0) { |
93 CollectElementIndices(object, handle(object->elements()), keys, range, | 93 CollectElementIndices(object, handle(object->elements()), keys, range, |
94 filter, offset); | 94 filter, offset); |
95 } | 95 } |
96 | 96 |
| 97 virtual Maybe<bool> CollectValuesOrEntries( |
| 98 Isolate* isolate, Handle<JSObject> object, |
| 99 Handle<FixedArray> values_or_entries, bool get_entries, int* nof_items, |
| 100 PropertyFilter filter = ALL_PROPERTIES); |
| 101 |
97 // | 102 // |
98 virtual Handle<FixedArray> PrependElementIndices( | 103 virtual Handle<FixedArray> PrependElementIndices( |
99 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, | 104 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, |
100 Handle<FixedArray> keys, GetKeysConversion convert, | 105 Handle<FixedArray> keys, GetKeysConversion convert, |
101 PropertyFilter filter = ALL_PROPERTIES) = 0; | 106 PropertyFilter filter = ALL_PROPERTIES) = 0; |
102 | 107 |
103 inline Handle<FixedArray> PrependElementIndices( | 108 inline Handle<FixedArray> PrependElementIndices( |
104 Handle<JSObject> object, Handle<FixedArray> keys, | 109 Handle<JSObject> object, Handle<FixedArray> keys, |
105 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { | 110 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { |
106 return PrependElementIndices(object, handle(object->elements()), keys, | 111 return PrependElementIndices(object, handle(object->elements()), keys, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 bool allow_appending = false); | 190 bool allow_appending = false); |
186 | 191 |
187 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 192 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
188 Handle<JSArray> array, | 193 Handle<JSArray> array, |
189 Arguments* args); | 194 Arguments* args); |
190 | 195 |
191 } // namespace internal | 196 } // namespace internal |
192 } // namespace v8 | 197 } // namespace v8 |
193 | 198 |
194 #endif // V8_ELEMENTS_H_ | 199 #endif // V8_ELEMENTS_H_ |
OLD | NEW |