| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 table_.Register(kVisitJSArrayBuffer, &VisitJSArrayBuffer); | 82 table_.Register(kVisitJSArrayBuffer, &VisitJSArrayBuffer); |
| 83 | 83 |
| 84 table_.Register(kVisitJSTypedArray, &VisitJSTypedArray); | 84 table_.Register(kVisitJSTypedArray, &VisitJSTypedArray); |
| 85 | 85 |
| 86 table_.Register(kVisitJSDataView, &VisitJSDataView); | 86 table_.Register(kVisitJSDataView, &VisitJSDataView); |
| 87 | 87 |
| 88 table_.Register(kVisitFreeSpace, &VisitFreeSpace); | 88 table_.Register(kVisitFreeSpace, &VisitFreeSpace); |
| 89 | 89 |
| 90 table_.Register(kVisitJSWeakMap, &JSObjectVisitor::Visit); | 90 table_.Register(kVisitJSWeakMap, &JSObjectVisitor::Visit); |
| 91 | 91 |
| 92 table_.Register(kVisitJSWeakSet, &JSObjectVisitor::Visit); |
| 93 |
| 92 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); | 94 table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); |
| 93 | 95 |
| 94 table_.template RegisterSpecializations<DataObjectVisitor, | 96 table_.template RegisterSpecializations<DataObjectVisitor, |
| 95 kVisitDataObject, | 97 kVisitDataObject, |
| 96 kVisitDataObjectGeneric>(); | 98 kVisitDataObjectGeneric>(); |
| 97 | 99 |
| 98 table_.template RegisterSpecializations<JSObjectVisitor, | 100 table_.template RegisterSpecializations<JSObjectVisitor, |
| 99 kVisitJSObject, | 101 kVisitJSObject, |
| 100 kVisitJSObjectGeneric>(); | 102 kVisitJSObjectGeneric>(); |
| 101 table_.template RegisterSpecializations<StructVisitor, | 103 table_.template RegisterSpecializations<StructVisitor, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 &FixedBodyVisitor<StaticVisitor, | 180 &FixedBodyVisitor<StaticVisitor, |
| 179 Symbol::BodyDescriptor, | 181 Symbol::BodyDescriptor, |
| 180 void>::Visit); | 182 void>::Visit); |
| 181 | 183 |
| 182 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 184 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); |
| 183 | 185 |
| 184 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); | 186 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); |
| 185 | 187 |
| 186 table_.Register(kVisitNativeContext, &VisitNativeContext); | 188 table_.Register(kVisitNativeContext, &VisitNativeContext); |
| 187 | 189 |
| 190 table_.Register(kVisitAllocationSite, |
| 191 &FixedBodyVisitor<StaticVisitor, |
| 192 AllocationSite::BodyDescriptor, |
| 193 void>::Visit); |
| 194 |
| 188 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); | 195 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); |
| 189 | 196 |
| 190 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); | 197 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); |
| 191 | 198 |
| 192 table_.Register(kVisitSeqOneByteString, &DataObjectVisitor::Visit); | 199 table_.Register(kVisitSeqOneByteString, &DataObjectVisitor::Visit); |
| 193 | 200 |
| 194 table_.Register(kVisitSeqTwoByteString, &DataObjectVisitor::Visit); | 201 table_.Register(kVisitSeqTwoByteString, &DataObjectVisitor::Visit); |
| 195 | 202 |
| 196 table_.Register(kVisitJSWeakMap, &StaticVisitor::VisitJSWeakMap); | 203 table_.Register(kVisitJSWeakMap, &StaticVisitor::VisitWeakCollection); |
| 204 |
| 205 table_.Register(kVisitJSWeakSet, &StaticVisitor::VisitWeakCollection); |
| 197 | 206 |
| 198 table_.Register(kVisitOddball, | 207 table_.Register(kVisitOddball, |
| 199 &FixedBodyVisitor<StaticVisitor, | 208 &FixedBodyVisitor<StaticVisitor, |
| 200 Oddball::BodyDescriptor, | 209 Oddball::BodyDescriptor, |
| 201 void>::Visit); | 210 void>::Visit); |
| 202 | 211 |
| 203 table_.Register(kVisitMap, &VisitMap); | 212 table_.Register(kVisitMap, &VisitMap); |
| 204 | 213 |
| 205 table_.Register(kVisitCode, &VisitCode); | 214 table_.Register(kVisitCode, &VisitCode); |
| 206 | 215 |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 RelocIterator it(this, mode_mask); | 882 RelocIterator it(this, mode_mask); |
| 874 for (; !it.done(); it.next()) { | 883 for (; !it.done(); it.next()) { |
| 875 it.rinfo()->template Visit<StaticVisitor>(heap); | 884 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 876 } | 885 } |
| 877 } | 886 } |
| 878 | 887 |
| 879 | 888 |
| 880 } } // namespace v8::internal | 889 } } // namespace v8::internal |
| 881 | 890 |
| 882 #endif // V8_OBJECTS_VISITING_INL_H_ | 891 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |