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/objects.h" | |
10 #include "src/heap.h" | 9 #include "src/heap.h" |
11 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| 11 #include "src/objects.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 // Abstract base class for handles that can operate on objects with differing | 16 // Abstract base class for handles that can operate on objects with differing |
17 // ElementsKinds. | 17 // ElementsKinds. |
18 class ElementsAccessor { | 18 class ElementsAccessor { |
19 public: | 19 public: |
20 explicit ElementsAccessor(const char* name) : name_(name) { } | 20 explicit ElementsAccessor(const char* name) : name_(name) { } |
21 virtual ~ElementsAccessor() { } | 21 virtual ~ElementsAccessor() { } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, | 234 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, |
235 bool allow_appending = false); | 235 bool allow_appending = false); |
236 | 236 |
237 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( | 237 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( |
238 Handle<JSArray> array, | 238 Handle<JSArray> array, |
239 Arguments* args); | 239 Arguments* args); |
240 | 240 |
241 } } // namespace v8::internal | 241 } } // namespace v8::internal |
242 | 242 |
243 #endif // V8_ELEMENTS_H_ | 243 #endif // V8_ELEMENTS_H_ |
OLD | NEW |