| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 113 virtual void TransitionElementsKind(Handle<JSObject> object, |
| 114 Handle<Map> map) = 0; | 114 Handle<Map> map) = 0; |
| 115 virtual void GrowCapacityAndConvert(Handle<JSObject> object, | 115 virtual void GrowCapacityAndConvert(Handle<JSObject> object, |
| 116 uint32_t capacity) = 0; | 116 uint32_t capacity) = 0; |
| 117 // Unlike GrowCapacityAndConvert do not attempt to convert the backing store |
| 118 // and simply return false in this case. |
| 119 virtual bool GrowCapacity(Handle<JSObject> object, uint32_t index) = 0; |
| 117 | 120 |
| 118 static void InitializeOncePerProcess(); | 121 static void InitializeOncePerProcess(); |
| 119 static void TearDown(); | 122 static void TearDown(); |
| 120 | 123 |
| 121 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; | 124 virtual void Set(Handle<JSObject> holder, uint32_t entry, Object* value) = 0; |
| 122 | 125 |
| 123 virtual void Reconfigure(Handle<JSObject> object, | 126 virtual void Reconfigure(Handle<JSObject> object, |
| 124 Handle<FixedArrayBase> backing_store, uint32_t entry, | 127 Handle<FixedArrayBase> backing_store, uint32_t entry, |
| 125 Handle<Object> value, | 128 Handle<Object> value, |
| 126 PropertyAttributes attributes) = 0; | 129 PropertyAttributes attributes) = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 bool allow_appending = false); | 205 bool allow_appending = false); |
| 203 | 206 |
| 204 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 207 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
| 205 Handle<JSArray> array, | 208 Handle<JSArray> array, |
| 206 Arguments* args); | 209 Arguments* args); |
| 207 | 210 |
| 208 } // namespace internal | 211 } // namespace internal |
| 209 } // namespace v8 | 212 } // namespace v8 |
| 210 | 213 |
| 211 #endif // V8_ELEMENTS_H_ | 214 #endif // V8_ELEMENTS_H_ |
| OLD | NEW |