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

Side by Side Diff: src/spaces.cc

Issue 8066009: Reenable assertion after issue was fixed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 // All the interior pointers should be contained in the heap. 808 // All the interior pointers should be contained in the heap.
809 int size = object->Size(); 809 int size = object->Size();
810 object->IterateBody(map->instance_type(), size, visitor); 810 object->IterateBody(map->instance_type(), size, visitor);
811 if (Marking::IsBlack(Marking::MarkBitFrom(object))) { 811 if (Marking::IsBlack(Marking::MarkBitFrom(object))) {
812 black_size += size; 812 black_size += size;
813 } 813 }
814 814
815 ASSERT(object->address() + size <= top); 815 ASSERT(object->address() + size <= top);
816 end_of_previous_object = object->address() + size; 816 end_of_previous_object = object->address() + size;
817 } 817 }
818 // TODO(1672): Assert that black_size <= page->LiveBytes(). 818 ASSERT(black_size <= page->LiveBytes());
819 } 819 }
820 ASSERT(allocation_pointer_found_in_space); 820 ASSERT(allocation_pointer_found_in_space);
821 } 821 }
822 #endif 822 #endif
823 823
824 824
825 // ----------------------------------------------------------------------------- 825 // -----------------------------------------------------------------------------
826 // NewSpace implementation 826 // NewSpace implementation
827 827
828 828
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 object->ShortPrint(); 2513 object->ShortPrint();
2514 PrintF("\n"); 2514 PrintF("\n");
2515 } 2515 }
2516 printf(" --------------------------------------\n"); 2516 printf(" --------------------------------------\n");
2517 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 2517 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
2518 } 2518 }
2519 2519
2520 #endif // DEBUG 2520 #endif // DEBUG
2521 2521
2522 } } // namespace v8::internal 2522 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698