Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/mark-compact.h

Issue 10816005: Swapped transition array and descriptor array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments, and updated additional code comments. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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...) Expand 10 before | Expand all | Expand 10 after
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...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« src/bootstrapper.cc ('K') | « src/ia32/macro-assembler-ia32.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698