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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 public: | 428 public: |
429 template<int size> | 429 template<int size> |
430 static inline void VisitSpecialized(Map* map, HeapObject* object) { | 430 static inline void VisitSpecialized(Map* map, HeapObject* object) { |
431 } | 431 } |
432 | 432 |
433 static inline void Visit(Map* map, HeapObject* object) { | 433 static inline void Visit(Map* map, HeapObject* object) { |
434 } | 434 } |
435 }; | 435 }; |
436 | 436 |
437 typedef FlexibleBodyVisitor<StaticVisitor, | 437 typedef FlexibleBodyVisitor<StaticVisitor, |
| 438 FixedArray::BodyDescriptor, |
| 439 void> FixedArrayVisitor; |
| 440 |
| 441 typedef FlexibleBodyVisitor<StaticVisitor, |
438 JSObject::BodyDescriptor, | 442 JSObject::BodyDescriptor, |
439 void> JSObjectVisitor; | 443 void> JSObjectVisitor; |
440 | 444 |
441 typedef FlexibleBodyVisitor<StaticVisitor, | 445 typedef FlexibleBodyVisitor<StaticVisitor, |
442 StructBodyDescriptor, | 446 StructBodyDescriptor, |
443 void> StructObjectVisitor; | 447 void> StructObjectVisitor; |
444 | 448 |
445 typedef void (*Callback)(Map* map, HeapObject* object); | 449 typedef void (*Callback)(Map* map, HeapObject* object); |
446 | 450 |
447 static VisitorDispatchTable<Callback> table_; | 451 static VisitorDispatchTable<Callback> table_; |
448 }; | 452 }; |
449 | 453 |
450 | 454 |
451 template<typename StaticVisitor> | 455 template<typename StaticVisitor> |
452 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> | 456 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> |
453 StaticMarkingVisitor<StaticVisitor>::table_; | 457 StaticMarkingVisitor<StaticVisitor>::table_; |
454 | 458 |
455 | 459 |
456 } } // namespace v8::internal | 460 } } // namespace v8::internal |
457 | 461 |
458 #endif // V8_OBJECTS_VISITING_H_ | 462 #endif // V8_OBJECTS_VISITING_H_ |
OLD | NEW |