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_OBJECTS_VISITING_INL_H_ | 5 #ifndef V8_OBJECTS_VISITING_INL_H_ |
6 #define V8_OBJECTS_VISITING_INL_H_ | 6 #define V8_OBJECTS_VISITING_INL_H_ |
7 | 7 |
8 #include "src/heap/array-buffer-tracker.h" | 8 #include "src/heap/array-buffer-tracker.h" |
9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
10 #include "src/ic/ic-state.h" | 10 #include "src/ic/ic-state.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 template <typename StaticVisitor> | 24 template <typename StaticVisitor> |
25 void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { | 25 void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
26 table_.Register( | 26 table_.Register( |
27 kVisitShortcutCandidate, | 27 kVisitShortcutCandidate, |
28 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, int>::Visit); | 28 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, int>::Visit); |
29 | 29 |
30 table_.Register( | 30 table_.Register( |
31 kVisitConsString, | 31 kVisitConsString, |
32 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, int>::Visit); | 32 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, int>::Visit); |
33 | 33 |
| 34 table_.Register( |
| 35 kVisitThinString, |
| 36 &FixedBodyVisitor<StaticVisitor, ThinString::BodyDescriptor, int>::Visit); |
| 37 |
34 table_.Register(kVisitSlicedString, | 38 table_.Register(kVisitSlicedString, |
35 &FixedBodyVisitor<StaticVisitor, SlicedString::BodyDescriptor, | 39 &FixedBodyVisitor<StaticVisitor, SlicedString::BodyDescriptor, |
36 int>::Visit); | 40 int>::Visit); |
37 | 41 |
38 table_.Register( | 42 table_.Register( |
39 kVisitSymbol, | 43 kVisitSymbol, |
40 &FixedBodyVisitor<StaticVisitor, Symbol::BodyDescriptor, int>::Visit); | 44 &FixedBodyVisitor<StaticVisitor, Symbol::BodyDescriptor, int>::Visit); |
41 | 45 |
42 table_.Register(kVisitFixedArray, | 46 table_.Register(kVisitFixedArray, |
43 &FlexibleBodyVisitor<StaticVisitor, | 47 &FlexibleBodyVisitor<StaticVisitor, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 template <typename StaticVisitor> | 114 template <typename StaticVisitor> |
111 void StaticMarkingVisitor<StaticVisitor>::Initialize() { | 115 void StaticMarkingVisitor<StaticVisitor>::Initialize() { |
112 table_.Register(kVisitShortcutCandidate, | 116 table_.Register(kVisitShortcutCandidate, |
113 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, | 117 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, |
114 void>::Visit); | 118 void>::Visit); |
115 | 119 |
116 table_.Register(kVisitConsString, | 120 table_.Register(kVisitConsString, |
117 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, | 121 &FixedBodyVisitor<StaticVisitor, ConsString::BodyDescriptor, |
118 void>::Visit); | 122 void>::Visit); |
119 | 123 |
| 124 table_.Register(kVisitThinString, |
| 125 &FixedBodyVisitor<StaticVisitor, ThinString::BodyDescriptor, |
| 126 void>::Visit); |
| 127 |
120 table_.Register(kVisitSlicedString, | 128 table_.Register(kVisitSlicedString, |
121 &FixedBodyVisitor<StaticVisitor, SlicedString::BodyDescriptor, | 129 &FixedBodyVisitor<StaticVisitor, SlicedString::BodyDescriptor, |
122 void>::Visit); | 130 void>::Visit); |
123 | 131 |
124 table_.Register( | 132 table_.Register( |
125 kVisitSymbol, | 133 kVisitSymbol, |
126 &FixedBodyVisitor<StaticVisitor, Symbol::BodyDescriptor, void>::Visit); | 134 &FixedBodyVisitor<StaticVisitor, Symbol::BodyDescriptor, void>::Visit); |
127 | 135 |
128 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 136 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); |
129 | 137 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, | 653 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, |
646 void> JSFunctionWeakCodeBodyVisitor; | 654 void> JSFunctionWeakCodeBodyVisitor; |
647 JSFunctionWeakCodeBodyVisitor::Visit(map, object); | 655 JSFunctionWeakCodeBodyVisitor::Visit(map, object); |
648 } | 656 } |
649 | 657 |
650 | 658 |
651 } // namespace internal | 659 } // namespace internal |
652 } // namespace v8 | 660 } // namespace v8 |
653 | 661 |
654 #endif // V8_OBJECTS_VISITING_INL_H_ | 662 #endif // V8_OBJECTS_VISITING_INL_H_ |
OLD | NEW |