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

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

Issue 73029: Fix issue 303 by not shortcutting cons-symbols. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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.cc ('k') | 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 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 live_old_data_objects_ = 0; 176 live_old_data_objects_ = 0;
177 live_code_objects_ = 0; 177 live_code_objects_ = 0;
178 live_map_objects_ = 0; 178 live_map_objects_ = 0;
179 live_lo_objects_ = 0; 179 live_lo_objects_ = 0;
180 #endif 180 #endif
181 } 181 }
182 182
183 183
184 void MarkCompactCollector::Finish() { 184 void MarkCompactCollector::Finish() {
185 #ifdef DEBUG 185 #ifdef DEBUG
186 SymbolTable* symbol_table = SymbolTable::cast(Heap::symbol_table());
187 SymbolTableVerifier v;
188 symbol_table->IterateElements(&v);
189
186 ASSERT(state_ == SWEEP_SPACES || state_ == REBUILD_RSETS); 190 ASSERT(state_ == SWEEP_SPACES || state_ == REBUILD_RSETS);
187 state_ = IDLE; 191 state_ = IDLE;
188 #endif 192 #endif
189 // The stub cache is not traversed during GC; clear the cache to 193 // The stub cache is not traversed during GC; clear the cache to
190 // force lazy re-initialization of it. This must be done after the 194 // force lazy re-initialization of it. This must be done after the
191 // GC, because it relies on the new address of certain old space 195 // GC, because it relies on the new address of certain old space
192 // objects (empty string, illegal builtin). 196 // objects (empty string, illegal builtin).
193 StubCache::Clear(); 197 StubCache::Clear();
194 } 198 }
195 199
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 1784
1781 void MarkCompactCollector::RebuildRSets() { 1785 void MarkCompactCollector::RebuildRSets() {
1782 #ifdef DEBUG 1786 #ifdef DEBUG
1783 ASSERT(state_ == RELOCATE_OBJECTS); 1787 ASSERT(state_ == RELOCATE_OBJECTS);
1784 state_ = REBUILD_RSETS; 1788 state_ = REBUILD_RSETS;
1785 #endif 1789 #endif
1786 Heap::RebuildRSets(); 1790 Heap::RebuildRSets();
1787 } 1791 }
1788 1792
1789 } } // namespace v8::internal 1793 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698