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 376 matching lines...) Loading... |
387 // Marker shared between incremental and non-incremental marking | 387 // Marker shared between incremental and non-incremental marking |
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); | |
398 void MarkTransitionArray(TransitionArray* transitions); | 397 void MarkTransitionArray(TransitionArray* transitions); |
399 | 398 |
400 private: | 399 private: |
401 BaseMarker* base_marker() { | 400 BaseMarker* base_marker() { |
402 return base_marker_; | 401 return base_marker_; |
403 } | 402 } |
404 | 403 |
405 MarkCompactCollector* mark_compact_collector() { | 404 MarkCompactCollector* mark_compact_collector() { |
406 return mark_compact_collector_; | 405 return mark_compact_collector_; |
407 } | 406 } |
(...skipping 378 matching lines...) Loading... |
786 | 785 |
787 friend class Heap; | 786 friend class Heap; |
788 }; | 787 }; |
789 | 788 |
790 | 789 |
791 const char* AllocationSpaceName(AllocationSpace space); | 790 const char* AllocationSpaceName(AllocationSpace space); |
792 | 791 |
793 } } // namespace v8::internal | 792 } } // namespace v8::internal |
794 | 793 |
795 #endif // V8_MARK_COMPACT_H_ | 794 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |