| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 static inline void VisitCodeEntry(Heap* heap, Address entry_address); | 389 static inline void VisitCodeEntry(Heap* heap, Address entry_address); |
| 390 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo); | 390 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo); |
| 391 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo); | 391 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo); |
| 392 static inline void VisitExternalReference(RelocInfo* rinfo) { } | 392 static inline void VisitExternalReference(RelocInfo* rinfo) { } |
| 393 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } | 393 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } |
| 394 | 394 |
| 395 // TODO(mstarzinger): This should be made protected once refactoring is done. | 395 // TODO(mstarzinger): This should be made protected once refactoring is done. |
| 396 static inline void VisitGlobalContext(Map* map, HeapObject* object); | 396 static inline void VisitGlobalContext(Map* map, HeapObject* object); |
| 397 | 397 |
| 398 protected: | 398 protected: |
| 399 static inline void VisitCode(Map* map, HeapObject* object); |
| 399 static inline void VisitJSRegExp(Map* map, HeapObject* object); | 400 static inline void VisitJSRegExp(Map* map, HeapObject* object); |
| 400 | 401 |
| 401 class DataObjectVisitor { | 402 class DataObjectVisitor { |
| 402 public: | 403 public: |
| 403 template<int size> | 404 template<int size> |
| 404 static inline void VisitSpecialized(Map* map, HeapObject* object) { | 405 static inline void VisitSpecialized(Map* map, HeapObject* object) { |
| 405 } | 406 } |
| 406 | 407 |
| 407 static inline void Visit(Map* map, HeapObject* object) { | 408 static inline void Visit(Map* map, HeapObject* object) { |
| 408 } | 409 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 423 | 424 |
| 424 | 425 |
| 425 template<typename StaticVisitor> | 426 template<typename StaticVisitor> |
| 426 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> | 427 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> |
| 427 StaticMarkingVisitor<StaticVisitor>::table_; | 428 StaticMarkingVisitor<StaticVisitor>::table_; |
| 428 | 429 |
| 429 | 430 |
| 430 } } // namespace v8::internal | 431 } } // namespace v8::internal |
| 431 | 432 |
| 432 #endif // V8_OBJECTS_VISITING_H_ | 433 #endif // V8_OBJECTS_VISITING_H_ |
| OLD | NEW |