| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |