OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 table_.Register(kVisitSharedFunctionInfo, | 66 table_.Register(kVisitSharedFunctionInfo, |
67 &FixedBodyVisitor<StaticVisitor, | 67 &FixedBodyVisitor<StaticVisitor, |
68 SharedFunctionInfo::BodyDescriptor, | 68 SharedFunctionInfo::BodyDescriptor, |
69 int>::Visit); | 69 int>::Visit); |
70 | 70 |
71 table_.Register(kVisitSeqAsciiString, &VisitSeqAsciiString); | 71 table_.Register(kVisitSeqAsciiString, &VisitSeqAsciiString); |
72 | 72 |
73 table_.Register(kVisitSeqTwoByteString, &VisitSeqTwoByteString); | 73 table_.Register(kVisitSeqTwoByteString, &VisitSeqTwoByteString); |
74 | 74 |
75 table_.Register(kVisitJSFunction, | 75 table_.Register(kVisitJSFunction, &VisitJSFunction); |
76 &JSObjectVisitor:: | |
77 template VisitSpecialized<JSFunction::kSize>); | |
78 | 76 |
79 table_.Register(kVisitFreeSpace, &VisitFreeSpace); | 77 table_.Register(kVisitFreeSpace, &VisitFreeSpace); |
80 | 78 |
81 table_.Register(kVisitJSWeakMap, &JSObjectVisitor::Visit); | 79 table_.Register(kVisitJSWeakMap, &JSObjectVisitor::Visit); |
82 | 80 |
83 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); | 81 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); |
84 | 82 |
85 table_.template RegisterSpecializations<DataObjectVisitor, | 83 table_.template RegisterSpecializations<DataObjectVisitor, |
86 kVisitDataObject, | 84 kVisitDataObject, |
87 kVisitDataObjectGeneric>(); | 85 kVisitDataObjectGeneric>(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 RelocIterator it(this, mode_mask); | 144 RelocIterator it(this, mode_mask); |
147 for (; !it.done(); it.next()) { | 145 for (; !it.done(); it.next()) { |
148 it.rinfo()->template Visit<StaticVisitor>(heap); | 146 it.rinfo()->template Visit<StaticVisitor>(heap); |
149 } | 147 } |
150 } | 148 } |
151 | 149 |
152 | 150 |
153 } } // namespace v8::internal | 151 } } // namespace v8::internal |
154 | 152 |
155 #endif // V8_OBJECTS_VISITING_INL_H_ | 153 #endif // V8_OBJECTS_VISITING_INL_H_ |
OLD | NEW |