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 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 MarkTransitionArray(TransitionArray* transitions); |
399 void MarkAccessorPairSlot(AccessorPair* accessors, int offset); | |
400 | 399 |
401 private: | 400 private: |
402 BaseMarker* base_marker() { | 401 BaseMarker* base_marker() { |
403 return base_marker_; | 402 return base_marker_; |
404 } | 403 } |
405 | 404 |
406 MarkCompactCollector* mark_compact_collector() { | 405 MarkCompactCollector* mark_compact_collector() { |
407 return mark_compact_collector_; | 406 return mark_compact_collector_; |
408 } | 407 } |
409 | 408 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 786 |
788 friend class Heap; | 787 friend class Heap; |
789 }; | 788 }; |
790 | 789 |
791 | 790 |
792 const char* AllocationSpaceName(AllocationSpace space); | 791 const char* AllocationSpaceName(AllocationSpace space); |
793 | 792 |
794 } } // namespace v8::internal | 793 } } // namespace v8::internal |
795 | 794 |
796 #endif // V8_MARK_COMPACT_H_ | 795 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |