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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 kVisitStruct3, | 108 kVisitStruct3, |
109 kVisitStruct4, | 109 kVisitStruct4, |
110 kVisitStruct5, | 110 kVisitStruct5, |
111 kVisitStruct6, | 111 kVisitStruct6, |
112 kVisitStruct7, | 112 kVisitStruct7, |
113 kVisitStruct8, | 113 kVisitStruct8, |
114 kVisitStruct9, | 114 kVisitStruct9, |
115 kVisitStructGeneric, | 115 kVisitStructGeneric, |
116 | 116 |
117 kVisitConsString, | 117 kVisitConsString, |
| 118 kVisitSlicedString, |
118 kVisitOddball, | 119 kVisitOddball, |
119 kVisitCode, | 120 kVisitCode, |
120 kVisitMap, | 121 kVisitMap, |
121 kVisitPropertyCell, | 122 kVisitPropertyCell, |
122 kVisitSharedFunctionInfo, | 123 kVisitSharedFunctionInfo, |
123 kVisitJSFunction, | 124 kVisitJSFunction, |
124 kVisitJSRegExp, | 125 kVisitJSRegExp, |
125 | 126 |
126 kVisitorIdCount, | 127 kVisitorIdCount, |
127 kMinObjectSizeInWords = 2 | 128 kMinObjectSizeInWords = 2 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 table_.Register(kVisitShortcutCandidate, | 292 table_.Register(kVisitShortcutCandidate, |
292 &FixedBodyVisitor<StaticVisitor, | 293 &FixedBodyVisitor<StaticVisitor, |
293 ConsString::BodyDescriptor, | 294 ConsString::BodyDescriptor, |
294 int>::Visit); | 295 int>::Visit); |
295 | 296 |
296 table_.Register(kVisitConsString, | 297 table_.Register(kVisitConsString, |
297 &FixedBodyVisitor<StaticVisitor, | 298 &FixedBodyVisitor<StaticVisitor, |
298 ConsString::BodyDescriptor, | 299 ConsString::BodyDescriptor, |
299 int>::Visit); | 300 int>::Visit); |
300 | 301 |
| 302 table_.Register(kVisitSlicedString, |
| 303 &FixedBodyVisitor<StaticVisitor, |
| 304 SlicedString::BodyDescriptor, |
| 305 int>::Visit); |
| 306 |
301 table_.Register(kVisitFixedArray, | 307 table_.Register(kVisitFixedArray, |
302 &FlexibleBodyVisitor<StaticVisitor, | 308 &FlexibleBodyVisitor<StaticVisitor, |
303 FixedArray::BodyDescriptor, | 309 FixedArray::BodyDescriptor, |
304 int>::Visit); | 310 int>::Visit); |
305 | 311 |
306 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); | 312 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); |
307 | 313 |
308 table_.Register(kVisitGlobalContext, | 314 table_.Register(kVisitGlobalContext, |
309 &FixedBodyVisitor<StaticVisitor, | 315 &FixedBodyVisitor<StaticVisitor, |
310 Context::ScavengeBodyDescriptor, | 316 Context::ScavengeBodyDescriptor, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 452 |
447 for (; !it.done(); it.next()) { | 453 for (; !it.done(); it.next()) { |
448 it.rinfo()->template Visit<StaticVisitor>(heap); | 454 it.rinfo()->template Visit<StaticVisitor>(heap); |
449 } | 455 } |
450 } | 456 } |
451 | 457 |
452 | 458 |
453 } } // namespace v8::internal | 459 } } // namespace v8::internal |
454 | 460 |
455 #endif // V8_OBJECTS_VISITING_H_ | 461 #endif // V8_OBJECTS_VISITING_H_ |
OLD | NEW |