| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 template<class BaseMarker> class Marker { | 388 template<class BaseMarker> class Marker { |
| 389 public: | 389 public: |
| 390 Marker(BaseMarker* base_marker, MarkCompactCollector* mark_compact_collector) | 390 Marker(BaseMarker* base_marker, MarkCompactCollector* mark_compact_collector) |
| 391 : base_marker_(base_marker), | 391 : base_marker_(base_marker), |
| 392 mark_compact_collector_(mark_compact_collector) {} | 392 mark_compact_collector_(mark_compact_collector) {} |
| 393 | 393 |
| 394 // Mark pointers in a Map and its DescriptorArray together, possibly | 394 // Mark pointers in a Map and its DescriptorArray together, possibly |
| 395 // treating transitions or back pointers weak. | 395 // treating transitions or back pointers weak. |
| 396 void MarkMapContents(Map* map); | 396 void MarkMapContents(Map* map); |
| 397 void MarkDescriptorArray(DescriptorArray* descriptors); | 397 void MarkDescriptorArray(DescriptorArray* descriptors); |
| 398 void MarkTransitionArray(TransitionArray* transitions); |
| 398 void MarkAccessorPairSlot(AccessorPair* accessors, int offset); | 399 void MarkAccessorPairSlot(AccessorPair* accessors, int offset); |
| 399 | 400 |
| 400 private: | 401 private: |
| 401 BaseMarker* base_marker() { | 402 BaseMarker* base_marker() { |
| 402 return base_marker_; | 403 return base_marker_; |
| 403 } | 404 } |
| 404 | 405 |
| 405 MarkCompactCollector* mark_compact_collector() { | 406 MarkCompactCollector* mark_compact_collector() { |
| 406 return mark_compact_collector_; | 407 return mark_compact_collector_; |
| 407 } | 408 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 | 787 |
| 787 friend class Heap; | 788 friend class Heap; |
| 788 }; | 789 }; |
| 789 | 790 |
| 790 | 791 |
| 791 const char* AllocationSpaceName(AllocationSpace space); | 792 const char* AllocationSpaceName(AllocationSpace space); |
| 792 | 793 |
| 793 } } // namespace v8::internal | 794 } } // namespace v8::internal |
| 794 | 795 |
| 795 #endif // V8_MARK_COMPACT_H_ | 796 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |