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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 &FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, | 77 &FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, |
78 int>::Visit); | 78 int>::Visit); |
79 | 79 |
80 table_.Register( | 80 table_.Register( |
81 kVisitJSArrayBuffer, | 81 kVisitJSArrayBuffer, |
82 &FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, | 82 &FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, |
83 int>::Visit); | 83 int>::Visit); |
84 | 84 |
85 table_.Register(kVisitFreeSpace, &VisitFreeSpace); | 85 table_.Register(kVisitFreeSpace, &VisitFreeSpace); |
86 | 86 |
87 table_.Register(kVisitJSWeakCollection, &JSObjectVisitor::Visit); | 87 table_.Register( |
| 88 kVisitJSWeakCollection, |
| 89 &FlexibleBodyVisitor<StaticVisitor, JSWeakCollection::BodyDescriptor, |
| 90 int>::Visit); |
88 | 91 |
89 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); | 92 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); |
90 | 93 |
91 table_.template RegisterSpecializations<DataObjectVisitor, kVisitDataObject, | 94 table_.template RegisterSpecializations<DataObjectVisitor, kVisitDataObject, |
92 kVisitDataObjectGeneric>(); | 95 kVisitDataObjectGeneric>(); |
93 | 96 |
94 table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject, | 97 table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject, |
95 kVisitJSObjectGeneric>(); | 98 kVisitJSObjectGeneric>(); |
96 | 99 |
97 // Not using specialized Api object visitor for newspace. | 100 // Not using specialized Api object visitor for newspace. |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, | 657 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, |
655 void> JSFunctionWeakCodeBodyVisitor; | 658 void> JSFunctionWeakCodeBodyVisitor; |
656 JSFunctionWeakCodeBodyVisitor::Visit(map, object); | 659 JSFunctionWeakCodeBodyVisitor::Visit(map, object); |
657 } | 660 } |
658 | 661 |
659 | 662 |
660 } // namespace internal | 663 } // namespace internal |
661 } // namespace v8 | 664 } // namespace v8 |
662 | 665 |
663 #endif // V8_OBJECTS_VISITING_INL_H_ | 666 #endif // V8_OBJECTS_VISITING_INL_H_ |
OLD | NEW |