| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 table_.Register(kVisitConsString, | 42 table_.Register(kVisitConsString, |
| 43 &FixedBodyVisitor<StaticVisitor, | 43 &FixedBodyVisitor<StaticVisitor, |
| 44 ConsString::BodyDescriptor, | 44 ConsString::BodyDescriptor, |
| 45 int>::Visit); | 45 int>::Visit); |
| 46 | 46 |
| 47 table_.Register(kVisitSlicedString, | 47 table_.Register(kVisitSlicedString, |
| 48 &FixedBodyVisitor<StaticVisitor, | 48 &FixedBodyVisitor<StaticVisitor, |
| 49 SlicedString::BodyDescriptor, | 49 SlicedString::BodyDescriptor, |
| 50 int>::Visit); | 50 int>::Visit); |
| 51 | 51 |
| 52 table_.Register(kVisitSymbol, |
| 53 &FixedBodyVisitor<StaticVisitor, |
| 54 Symbol::BodyDescriptor, |
| 55 int>::Visit); |
| 56 |
| 52 table_.Register(kVisitFixedArray, | 57 table_.Register(kVisitFixedArray, |
| 53 &FlexibleBodyVisitor<StaticVisitor, | 58 &FlexibleBodyVisitor<StaticVisitor, |
| 54 FixedArray::BodyDescriptor, | 59 FixedArray::BodyDescriptor, |
| 55 int>::Visit); | 60 int>::Visit); |
| 56 | 61 |
| 57 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); | 62 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); |
| 58 | 63 |
| 59 table_.Register(kVisitNativeContext, | 64 table_.Register(kVisitNativeContext, |
| 60 &FixedBodyVisitor<StaticVisitor, | 65 &FixedBodyVisitor<StaticVisitor, |
| 61 Context::ScavengeBodyDescriptor, | 66 Context::ScavengeBodyDescriptor, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 table_.Register(kVisitConsString, | 108 table_.Register(kVisitConsString, |
| 104 &FixedBodyVisitor<StaticVisitor, | 109 &FixedBodyVisitor<StaticVisitor, |
| 105 ConsString::BodyDescriptor, | 110 ConsString::BodyDescriptor, |
| 106 void>::Visit); | 111 void>::Visit); |
| 107 | 112 |
| 108 table_.Register(kVisitSlicedString, | 113 table_.Register(kVisitSlicedString, |
| 109 &FixedBodyVisitor<StaticVisitor, | 114 &FixedBodyVisitor<StaticVisitor, |
| 110 SlicedString::BodyDescriptor, | 115 SlicedString::BodyDescriptor, |
| 111 void>::Visit); | 116 void>::Visit); |
| 112 | 117 |
| 118 table_.Register(kVisitSymbol, |
| 119 &FixedBodyVisitor<StaticVisitor, |
| 120 Symbol::BodyDescriptor, |
| 121 void>::Visit); |
| 122 |
| 113 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); | 123 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); |
| 114 | 124 |
| 115 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); | 125 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); |
| 116 | 126 |
| 117 table_.Register(kVisitNativeContext, &VisitNativeContext); | 127 table_.Register(kVisitNativeContext, &VisitNativeContext); |
| 118 | 128 |
| 119 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); | 129 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); |
| 120 | 130 |
| 121 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); | 131 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); |
| 122 | 132 |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 RelocIterator it(this, mode_mask); | 719 RelocIterator it(this, mode_mask); |
| 710 for (; !it.done(); it.next()) { | 720 for (; !it.done(); it.next()) { |
| 711 it.rinfo()->template Visit<StaticVisitor>(heap); | 721 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 712 } | 722 } |
| 713 } | 723 } |
| 714 | 724 |
| 715 | 725 |
| 716 } } // namespace v8::internal | 726 } } // namespace v8::internal |
| 717 | 727 |
| 718 #endif // V8_OBJECTS_VISITING_INL_H_ | 728 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |