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

Side by Side Diff: src/incremental-marking.cc

Issue 39183004: Define DEBUG for v8_optimized_debug=2 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 1 month 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 721
722 void IncrementalMarking::VisitObject(Map* map, HeapObject* obj, int size) { 722 void IncrementalMarking::VisitObject(Map* map, HeapObject* obj, int size) {
723 MarkBit map_mark_bit = Marking::MarkBitFrom(map); 723 MarkBit map_mark_bit = Marking::MarkBitFrom(map);
724 if (Marking::IsWhite(map_mark_bit)) { 724 if (Marking::IsWhite(map_mark_bit)) {
725 WhiteToGreyAndPush(map, map_mark_bit); 725 WhiteToGreyAndPush(map, map_mark_bit);
726 } 726 }
727 727
728 IncrementalMarkingMarkingVisitor::IterateBody(map, obj); 728 IncrementalMarkingMarkingVisitor::IterateBody(map, obj);
729 729
730 MarkBit mark_bit = Marking::MarkBitFrom(obj); 730 MarkBit mark_bit = Marking::MarkBitFrom(obj);
731 #ifdef DEBUG 731 #if ENABLE_SLOW_ASSERTS
732 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); 732 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address());
733 SLOW_ASSERT(Marking::IsGrey(mark_bit) || 733 SLOW_ASSERT(Marking::IsGrey(mark_bit) ||
734 (obj->IsFiller() && Marking::IsWhite(mark_bit)) || 734 (obj->IsFiller() && Marking::IsWhite(mark_bit)) ||
735 (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR) && 735 (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR) &&
736 Marking::IsBlack(mark_bit))); 736 Marking::IsBlack(mark_bit)));
737 #endif 737 #endif
738 MarkBlackOrKeepBlack(obj, mark_bit, size); 738 MarkBlackOrKeepBlack(obj, mark_bit, size);
739 } 739 }
740 740
741 741
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 bytes_scanned_ = 0; 1035 bytes_scanned_ = 0;
1036 write_barriers_invoked_since_last_step_ = 0; 1036 write_barriers_invoked_since_last_step_ = 0;
1037 } 1037 }
1038 1038
1039 1039
1040 int64_t IncrementalMarking::SpaceLeftInOldSpace() { 1040 int64_t IncrementalMarking::SpaceLeftInOldSpace() {
1041 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); 1041 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects();
1042 } 1042 }
1043 1043
1044 } } // namespace v8::internal 1044 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698