| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54                   Symbol::BodyDescriptor, | 54                   Symbol::BodyDescriptor, | 
| 55                   int>::Visit); | 55                   int>::Visit); | 
| 56 | 56 | 
| 57   table_.Register(kVisitFixedArray, | 57   table_.Register(kVisitFixedArray, | 
| 58                   &FlexibleBodyVisitor<StaticVisitor, | 58                   &FlexibleBodyVisitor<StaticVisitor, | 
| 59                   FixedArray::BodyDescriptor, | 59                   FixedArray::BodyDescriptor, | 
| 60                   int>::Visit); | 60                   int>::Visit); | 
| 61 | 61 | 
| 62   table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); | 62   table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); | 
| 63 | 63 | 
|  | 64   table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray); | 
|  | 65 | 
| 64   table_.Register(kVisitNativeContext, | 66   table_.Register(kVisitNativeContext, | 
| 65                   &FixedBodyVisitor<StaticVisitor, | 67                   &FixedBodyVisitor<StaticVisitor, | 
| 66                   Context::ScavengeBodyDescriptor, | 68                   Context::ScavengeBodyDescriptor, | 
| 67                   int>::Visit); | 69                   int>::Visit); | 
| 68 | 70 | 
| 69   table_.Register(kVisitByteArray, &VisitByteArray); | 71   table_.Register(kVisitByteArray, &VisitByteArray); | 
| 70 | 72 | 
| 71   table_.Register(kVisitSharedFunctionInfo, | 73   table_.Register(kVisitSharedFunctionInfo, | 
| 72                   &FixedBodyVisitor<StaticVisitor, | 74                   &FixedBodyVisitor<StaticVisitor, | 
| 73                   SharedFunctionInfo::BodyDescriptor, | 75                   SharedFunctionInfo::BodyDescriptor, | 
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 178 | 180 | 
| 179   table_.Register(kVisitSymbol, | 181   table_.Register(kVisitSymbol, | 
| 180                   &FixedBodyVisitor<StaticVisitor, | 182                   &FixedBodyVisitor<StaticVisitor, | 
| 181                   Symbol::BodyDescriptor, | 183                   Symbol::BodyDescriptor, | 
| 182                   void>::Visit); | 184                   void>::Visit); | 
| 183 | 185 | 
| 184   table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 186   table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 
| 185 | 187 | 
| 186   table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); | 188   table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); | 
| 187 | 189 | 
|  | 190   table_.Register(kVisitConstantPoolArray, &DataObjectVisitor::Visit); | 
|  | 191 | 
| 188   table_.Register(kVisitNativeContext, &VisitNativeContext); | 192   table_.Register(kVisitNativeContext, &VisitNativeContext); | 
| 189 | 193 | 
| 190   table_.Register(kVisitAllocationSite, | 194   table_.Register(kVisitAllocationSite, | 
| 191                   &FixedBodyVisitor<StaticVisitor, | 195                   &FixedBodyVisitor<StaticVisitor, | 
| 192                   AllocationSite::BodyDescriptor, | 196                   AllocationSite::BodyDescriptor, | 
| 193                   void>::Visit); | 197                   void>::Visit); | 
| 194 | 198 | 
| 195   table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); | 199   table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); | 
| 196 | 200 | 
| 197   table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); | 201   table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); | 
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 882   RelocIterator it(this, mode_mask); | 886   RelocIterator it(this, mode_mask); | 
| 883   for (; !it.done(); it.next()) { | 887   for (; !it.done(); it.next()) { | 
| 884     it.rinfo()->template Visit<StaticVisitor>(heap); | 888     it.rinfo()->template Visit<StaticVisitor>(heap); | 
| 885   } | 889   } | 
| 886 } | 890 } | 
| 887 | 891 | 
| 888 | 892 | 
| 889 } }  // namespace v8::internal | 893 } }  // namespace v8::internal | 
| 890 | 894 | 
| 891 #endif  // V8_OBJECTS_VISITING_INL_H_ | 895 #endif  // V8_OBJECTS_VISITING_INL_H_ | 
| OLD | NEW | 
|---|