| 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" |
| 11 #include "src/key-accumulator.h" |
| 11 #include "src/objects.h" | 12 #include "src/objects.h" |
| 12 | 13 |
| 13 namespace v8 { | 14 namespace v8 { |
| 14 namespace internal { | 15 namespace internal { |
| 15 | 16 |
| 16 // Abstract base class for handles that can operate on objects with differing | 17 // Abstract base class for handles that can operate on objects with differing |
| 17 // ElementsKinds. | 18 // ElementsKinds. |
| 18 class ElementsAccessor { | 19 class ElementsAccessor { |
| 19 public: | 20 public: |
| 20 explicit ElementsAccessor(const char* name) : name_(name) { } | 21 explicit ElementsAccessor(const char* name) : name_(name) { } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool allow_appending = false); | 213 bool allow_appending = false); |
| 213 | 214 |
| 214 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
| 215 Handle<JSArray> array, | 216 Handle<JSArray> array, |
| 216 Arguments* args); | 217 Arguments* args); |
| 217 | 218 |
| 218 } // namespace internal | 219 } // namespace internal |
| 219 } // namespace v8 | 220 } // namespace v8 |
| 220 | 221 |
| 221 #endif // V8_ELEMENTS_H_ | 222 #endif // V8_ELEMENTS_H_ |
| OLD | NEW |