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 377 matching lines...) Loading... |
388 // This is an example of Curiously recurring template pattern. | 388 // This is an example of Curiously recurring template pattern. |
389 template<typename StaticVisitor> | 389 template<typename StaticVisitor> |
390 class StaticMarkingVisitor : public StaticVisitorBase { | 390 class StaticMarkingVisitor : public StaticVisitorBase { |
391 public: | 391 public: |
392 static void Initialize(); | 392 static void Initialize(); |
393 | 393 |
394 INLINE(static void IterateBody(Map* map, HeapObject* obj)) { | 394 INLINE(static void IterateBody(Map* map, HeapObject* obj)) { |
395 table_.GetVisitor(map)(map, obj); | 395 table_.GetVisitor(map)(map, obj); |
396 } | 396 } |
397 | 397 |
| 398 INLINE(static void VisitPropertyCell(Map* map, HeapObject* object)); |
398 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address)); | 399 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address)); |
399 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo)); | 400 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo)); |
400 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo)); | 401 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo)); |
401 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo)); | 402 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo)); |
402 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo)); | 403 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo)); |
403 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); | 404 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); |
404 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) { } | 405 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) { } |
405 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) { } | 406 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) { } |
406 | 407 |
407 // TODO(mstarzinger): This should be made protected once refactoring is done. | 408 // TODO(mstarzinger): This should be made protected once refactoring is done. |
(...skipping 57 matching lines...) Loading... |
465 | 466 |
466 | 467 |
467 template<typename StaticVisitor> | 468 template<typename StaticVisitor> |
468 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> | 469 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> |
469 StaticMarkingVisitor<StaticVisitor>::table_; | 470 StaticMarkingVisitor<StaticVisitor>::table_; |
470 | 471 |
471 | 472 |
472 } } // namespace v8::internal | 473 } } // namespace v8::internal |
473 | 474 |
474 #endif // V8_OBJECTS_VISITING_H_ | 475 #endif // V8_OBJECTS_VISITING_H_ |
OLD | NEW |