| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 &FixedBodyVisitor<StaticVisitor, | 53 &FixedBodyVisitor<StaticVisitor, |
| 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 table_.Register(kVisitFixedTypedArray, &VisitFixedTypedArray); | |
| 64 | 63 |
| 65 table_.Register(kVisitNativeContext, | 64 table_.Register(kVisitNativeContext, |
| 66 &FixedBodyVisitor<StaticVisitor, | 65 &FixedBodyVisitor<StaticVisitor, |
| 67 Context::ScavengeBodyDescriptor, | 66 Context::ScavengeBodyDescriptor, |
| 68 int>::Visit); | 67 int>::Visit); |
| 69 | 68 |
| 70 table_.Register(kVisitByteArray, &VisitByteArray); | 69 table_.Register(kVisitByteArray, &VisitByteArray); |
| 71 | 70 |
| 72 table_.Register(kVisitSharedFunctionInfo, | 71 table_.Register(kVisitSharedFunctionInfo, |
| 73 &FixedBodyVisitor<StaticVisitor, | 72 &FixedBodyVisitor<StaticVisitor, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 178 |
| 180 table_.Register(kVisitSymbol, | 179 table_.Register(kVisitSymbol, |
| 181 &FixedBodyVisitor<StaticVisitor, | 180 &FixedBodyVisitor<StaticVisitor, |
| 182 Symbol::BodyDescriptor, | 181 Symbol::BodyDescriptor, |
| 183 void>::Visit); | 182 void>::Visit); |
| 184 | 183 |
| 185 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 184 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); |
| 186 | 185 |
| 187 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); | 186 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); |
| 188 | 187 |
| 189 table_.Register(kVisitFixedTypedArray, &DataObjectVisitor::Visit); | |
| 190 | |
| 191 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray); | 188 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray); |
| 192 | 189 |
| 193 table_.Register(kVisitNativeContext, &VisitNativeContext); | 190 table_.Register(kVisitNativeContext, &VisitNativeContext); |
| 194 | 191 |
| 195 table_.Register(kVisitAllocationSite, &VisitAllocationSite); | 192 table_.Register(kVisitAllocationSite, &VisitAllocationSite); |
| 196 | 193 |
| 197 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); | 194 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); |
| 198 | 195 |
| 199 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); | 196 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); |
| 200 | 197 |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 RelocIterator it(this, mode_mask); | 934 RelocIterator it(this, mode_mask); |
| 938 for (; !it.done(); it.next()) { | 935 for (; !it.done(); it.next()) { |
| 939 it.rinfo()->template Visit<StaticVisitor>(heap); | 936 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 940 } | 937 } |
| 941 } | 938 } |
| 942 | 939 |
| 943 | 940 |
| 944 } } // namespace v8::internal | 941 } } // namespace v8::internal |
| 945 | 942 |
| 946 #endif // V8_OBJECTS_VISITING_INL_H_ | 943 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |