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 #include "src/v8.h" | 5 #include "src/elements.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/elements.h" | 9 #include "src/factory.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
11 #include "src/objects.h" | 11 #include "src/objects-inl.h" |
12 #include "src/utils.h" | 12 #include "src/utils.h" |
13 | 13 |
14 // Each concrete ElementsAccessor can handle exactly one ElementsKind, | 14 // Each concrete ElementsAccessor can handle exactly one ElementsKind, |
15 // several abstract ElementsAccessor classes are used to allow sharing | 15 // several abstract ElementsAccessor classes are used to allow sharing |
16 // common code. | 16 // common code. |
17 // | 17 // |
18 // Inheritance hierarchy: | 18 // Inheritance hierarchy: |
19 // - ElementsAccessorBase (abstract) | 19 // - ElementsAccessorBase (abstract) |
20 // - FastElementsAccessor (abstract) | 20 // - FastElementsAccessor (abstract) |
21 // - FastSmiOrObjectElementsAccessor | 21 // - FastSmiOrObjectElementsAccessor |
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 #define ACCESSOR_DELETE(Class, Kind, Store) delete elements_accessors_[Kind]; | 1974 #define ACCESSOR_DELETE(Class, Kind, Store) delete elements_accessors_[Kind]; |
1975 ELEMENTS_LIST(ACCESSOR_DELETE) | 1975 ELEMENTS_LIST(ACCESSOR_DELETE) |
1976 #undef ACCESSOR_DELETE | 1976 #undef ACCESSOR_DELETE |
1977 elements_accessors_ = NULL; | 1977 elements_accessors_ = NULL; |
1978 } | 1978 } |
1979 | 1979 |
1980 | 1980 |
1981 ElementsAccessor** ElementsAccessor::elements_accessors_ = NULL; | 1981 ElementsAccessor** ElementsAccessor::elements_accessors_ = NULL; |
1982 } // namespace internal | 1982 } // namespace internal |
1983 } // namespace v8 | 1983 } // namespace v8 |
OLD | NEW |