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

Side by Side Diff: src/heap.cc

Issue 149385: Fix x64 build. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 // TODO(X64): Make this go away again. We currently disable RSets for 663 // TODO(X64): Make this go away again. We currently disable RSets for
664 // 64-bit-mode. 664 // 64-bit-mode.
665 HeapObjectIterator old_pointer_iterator(old_pointer_space_); 665 HeapObjectIterator old_pointer_iterator(old_pointer_space_);
666 while (old_pointer_iterator.has_next()) { 666 while (old_pointer_iterator.has_next()) {
667 HeapObject* heap_object = old_pointer_iterator.next(); 667 HeapObject* heap_object = old_pointer_iterator.next();
668 heap_object->Iterate(&scavenge_visitor); 668 heap_object->Iterate(&scavenge_visitor);
669 } 669 }
670 670
671 HeapObjectIterator cell_iterator(cell_space_); 671 HeapObjectIterator cell_iterator(cell_space_);
672 while (cell_iterator.has_next()) { 672 while (cell_iterator.has_next()) {
673 cell_iterator.next()->Iterate(&scavenge_visitor)); 673 cell_iterator.next()->Iterate(&scavenge_visitor);
674 } 674 }
675 675
676 HeapObjectIterator map_iterator(map_space_); 676 HeapObjectIterator map_iterator(map_space_);
677 while (map_iterator.has_next()) { 677 while (map_iterator.has_next()) {
678 HeapObject* heap_object = map_iterator.next(); 678 HeapObject* heap_object = map_iterator.next();
679 heap_object->Iterate(&scavenge_visitor); 679 heap_object->Iterate(&scavenge_visitor);
680 } 680 }
681 LargeObjectIterator lo_iterator(lo_space_); 681 LargeObjectIterator lo_iterator(lo_space_);
682 while (lo_iterator.has_next()) { 682 while (lo_iterator.has_next()) {
683 HeapObject* heap_object = lo_iterator.next(); 683 HeapObject* heap_object = lo_iterator.next();
(...skipping 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 #ifdef DEBUG 3681 #ifdef DEBUG
3682 bool Heap::GarbageCollectionGreedyCheck() { 3682 bool Heap::GarbageCollectionGreedyCheck() {
3683 ASSERT(FLAG_gc_greedy); 3683 ASSERT(FLAG_gc_greedy);
3684 if (Bootstrapper::IsActive()) return true; 3684 if (Bootstrapper::IsActive()) return true;
3685 if (disallow_allocation_failure()) return true; 3685 if (disallow_allocation_failure()) return true;
3686 return CollectGarbage(0, NEW_SPACE); 3686 return CollectGarbage(0, NEW_SPACE);
3687 } 3687 }
3688 #endif 3688 #endif
3689 3689
3690 } } // namespace v8::internal 3690 } } // 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