| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class StaticVisitorBase : public AllStatic { | 47 class StaticVisitorBase : public AllStatic { |
| 48 public: | 48 public: |
| 49 #define VISITOR_ID_LIST(V) \ | 49 #define VISITOR_ID_LIST(V) \ |
| 50 V(SeqAsciiString) \ | 50 V(SeqAsciiString) \ |
| 51 V(SeqTwoByteString) \ | 51 V(SeqTwoByteString) \ |
| 52 V(ShortcutCandidate) \ | 52 V(ShortcutCandidate) \ |
| 53 V(ByteArray) \ | 53 V(ByteArray) \ |
| 54 V(FreeSpace) \ | 54 V(FreeSpace) \ |
| 55 V(FixedArray) \ | 55 V(FixedArray) \ |
| 56 V(FixedDoubleArray) \ | 56 V(FixedDoubleArray) \ |
| 57 V(NativeContext) \ | 57 V(GlobalContext) \ |
| 58 V(DataObject2) \ | 58 V(DataObject2) \ |
| 59 V(DataObject3) \ | 59 V(DataObject3) \ |
| 60 V(DataObject4) \ | 60 V(DataObject4) \ |
| 61 V(DataObject5) \ | 61 V(DataObject5) \ |
| 62 V(DataObject6) \ | 62 V(DataObject6) \ |
| 63 V(DataObject7) \ | 63 V(DataObject7) \ |
| 64 V(DataObject8) \ | 64 V(DataObject8) \ |
| 65 V(DataObject9) \ | 65 V(DataObject9) \ |
| 66 V(DataObjectGeneric) \ | 66 V(DataObjectGeneric) \ |
| 67 V(JSObject2) \ | 67 V(JSObject2) \ |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 static inline void VisitCodeEntry(Heap* heap, Address entry_address); | 389 static inline void VisitCodeEntry(Heap* heap, Address entry_address); |
| 390 static inline void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo); | 390 static inline void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo); |
| 391 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo); | 391 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo); |
| 392 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo); | 392 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo); |
| 393 static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo); | 393 static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo); |
| 394 static inline void VisitExternalReference(RelocInfo* rinfo) { } | 394 static inline void VisitExternalReference(RelocInfo* rinfo) { } |
| 395 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } | 395 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } |
| 396 | 396 |
| 397 // TODO(mstarzinger): This should be made protected once refactoring is done. | 397 // TODO(mstarzinger): This should be made protected once refactoring is done. |
| 398 static inline void VisitNativeContext(Map* map, HeapObject* object); | 398 static inline void VisitGlobalContext(Map* map, HeapObject* object); |
| 399 | 399 |
| 400 protected: | 400 protected: |
| 401 static inline void VisitCode(Map* map, HeapObject* object); | 401 static inline void VisitCode(Map* map, HeapObject* object); |
| 402 static inline void VisitJSRegExp(Map* map, HeapObject* object); | 402 static inline void VisitJSRegExp(Map* map, HeapObject* object); |
| 403 | 403 |
| 404 class DataObjectVisitor { | 404 class DataObjectVisitor { |
| 405 public: | 405 public: |
| 406 template<int size> | 406 template<int size> |
| 407 static inline void VisitSpecialized(Map* map, HeapObject* object) { | 407 static inline void VisitSpecialized(Map* map, HeapObject* object) { |
| 408 } | 408 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 426 | 426 |
| 427 | 427 |
| 428 template<typename StaticVisitor> | 428 template<typename StaticVisitor> |
| 429 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> | 429 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> |
| 430 StaticMarkingVisitor<StaticVisitor>::table_; | 430 StaticMarkingVisitor<StaticVisitor>::table_; |
| 431 | 431 |
| 432 | 432 |
| 433 } } // namespace v8::internal | 433 } } // namespace v8::internal |
| 434 | 434 |
| 435 #endif // V8_OBJECTS_VISITING_H_ | 435 #endif // V8_OBJECTS_VISITING_H_ |
| OLD | NEW |