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

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

Issue 3432032: Fix test after 64 bit heap size change. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | « src/heap-inl.h ('k') | src/objects-debug.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 ASSERT(Heap::map_space()->Contains(map)); 2001 ASSERT(Heap::map_space()->Contains(map));
2002 MapWord map_word = map->map_word(); 2002 MapWord map_word = map->map_word();
2003 ASSERT(!map_word.IsMarked()); 2003 ASSERT(!map_word.IsMarked());
2004 if (map_word.IsOverflowed()) { 2004 if (map_word.IsOverflowed()) {
2005 Map* new_map = GetForwardedMap(map_word); 2005 Map* new_map = GetForwardedMap(map_word);
2006 ASSERT(Heap::map_space()->Contains(new_map)); 2006 ASSERT(Heap::map_space()->Contains(new_map));
2007 obj->set_map(new_map); 2007 obj->set_map(new_map);
2008 2008
2009 #ifdef DEBUG 2009 #ifdef DEBUG
2010 if (FLAG_gc_verbose) { 2010 if (FLAG_gc_verbose) {
2011 PrintF("update %p : %p -> %p\n", obj->address(), 2011 PrintF("update %p : %p -> %p\n",
2012 map, new_map); 2012 obj->address(),
2013 reinterpret_cast<void*>(map),
2014 reinterpret_cast<void*>(new_map));
2013 } 2015 }
2014 #endif 2016 #endif
2015 } 2017 }
2016 2018
2017 int size = obj->SizeFromMap(map); 2019 int size = obj->SizeFromMap(map);
2018 obj->IterateBody(map->instance_type(), size, &map_updating_visitor_); 2020 obj->IterateBody(map->instance_type(), size, &map_updating_visitor_);
2019 return size; 2021 return size;
2020 } 2022 }
2021 2023
2022 static void UpdateMapPointersInRange(Address start, Address end) { 2024 static void UpdateMapPointersInRange(Address start, Address end) {
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 } 2634 }
2633 2635
2634 2636
2635 void MarkCompactCollector::Initialize() { 2637 void MarkCompactCollector::Initialize() {
2636 StaticPointersToNewGenUpdatingVisitor::Initialize(); 2638 StaticPointersToNewGenUpdatingVisitor::Initialize();
2637 StaticMarkingVisitor::Initialize(); 2639 StaticMarkingVisitor::Initialize();
2638 } 2640 }
2639 2641
2640 2642
2641 } } // namespace v8::internal 2643 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698