| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 Handle<JSObject> object, Handle<FixedArray> keys, | 103 Handle<JSObject> object, Handle<FixedArray> keys, |
| 104 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { | 104 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { |
| 105 return PrependElementIndices(object, handle(object->elements()), keys, | 105 return PrependElementIndices(object, handle(object->elements()), keys, |
| 106 convert, filter); | 106 convert, filter); |
| 107 } | 107 } |
| 108 | 108 |
| 109 virtual void AddElementsToKeyAccumulator(Handle<JSObject> receiver, | 109 virtual void AddElementsToKeyAccumulator(Handle<JSObject> receiver, |
| 110 KeyAccumulator* accumulator, | 110 KeyAccumulator* accumulator, |
| 111 AddKeyConversion convert) = 0; | 111 AddKeyConversion convert) = 0; |
| 112 | 112 |
| 113 virtual void TransitionElementsKind(Handle<JSObject> object, |
| 114 Handle<Map> map) = 0; |
| 113 virtual void GrowCapacityAndConvert(Handle<JSObject> object, | 115 virtual void GrowCapacityAndConvert(Handle<JSObject> object, |
| 114 uint32_t capacity) = 0; | 116 uint32_t capacity) = 0; |
| 115 | 117 |
| 116 static void InitializeOncePerProcess(); | 118 static void InitializeOncePerProcess(); |
| 117 static void TearDown(); | 119 static void TearDown(); |
| 118 | 120 |
| 119 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; | 121 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; |
| 120 | 122 |
| 121 virtual void Reconfigure(Handle<JSObject> object, | 123 virtual void Reconfigure(Handle<JSObject> object, |
| 122 Handle<FixedArrayBase> backing_store, uint32_t entry, | 124 Handle<FixedArrayBase> backing_store, uint32_t entry, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 bool allow_appending = false); | 189 bool allow_appending = false); |
| 188 | 190 |
| 189 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 191 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
| 190 Handle<JSArray> array, | 192 Handle<JSArray> array, |
| 191 Arguments* args); | 193 Arguments* args); |
| 192 | 194 |
| 193 } // namespace internal | 195 } // namespace internal |
| 194 } // namespace v8 | 196 } // namespace v8 |
| 195 | 197 |
| 196 #endif // V8_ELEMENTS_H_ | 198 #endif // V8_ELEMENTS_H_ |
| OLD | NEW |