OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1368 | 1368 |
1369 ScavengeVisitor scavenge_visitor(this); | 1369 ScavengeVisitor scavenge_visitor(this); |
1370 // Copy roots. | 1370 // Copy roots. |
1371 IterateRoots(&scavenge_visitor, VISIT_ALL_IN_SCAVENGE); | 1371 IterateRoots(&scavenge_visitor, VISIT_ALL_IN_SCAVENGE); |
1372 | 1372 |
1373 // Copy objects reachable from the old generation. | 1373 // Copy objects reachable from the old generation. |
1374 { | 1374 { |
1375 StoreBufferRebuildScope scope(this, | 1375 StoreBufferRebuildScope scope(this, |
1376 store_buffer(), | 1376 store_buffer(), |
1377 &ScavengeStoreBufferCallback); | 1377 &ScavengeStoreBufferCallback); |
1378 store_buffer()->IteratePointersToNewSpace(&ScavengeObject); | 1378 store_buffer()->IteratePointersToNewSpace(&ScavengeObject, false); |
1379 } | 1379 } |
1380 | 1380 |
1381 // Copy objects reachable from simple cells by scavenging cell values | 1381 // Copy objects reachable from simple cells by scavenging cell values |
1382 // directly. | 1382 // directly. |
1383 HeapObjectIterator cell_iterator(cell_space_); | 1383 HeapObjectIterator cell_iterator(cell_space_); |
1384 for (HeapObject* heap_object = cell_iterator.Next(); | 1384 for (HeapObject* heap_object = cell_iterator.Next(); |
1385 heap_object != NULL; | 1385 heap_object != NULL; |
1386 heap_object = cell_iterator.Next()) { | 1386 heap_object = cell_iterator.Next()) { |
1387 if (heap_object->IsCell()) { | 1387 if (heap_object->IsCell()) { |
1388 Cell* cell = Cell::cast(heap_object); | 1388 Cell* cell = Cell::cast(heap_object); |
(...skipping 6747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8136 if (FLAG_parallel_recompilation) { | 8136 if (FLAG_parallel_recompilation) { |
8137 heap_->relocation_mutex_->Lock(); | 8137 heap_->relocation_mutex_->Lock(); |
8138 #ifdef DEBUG | 8138 #ifdef DEBUG |
8139 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8139 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
8140 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8140 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
8141 #endif // DEBUG | 8141 #endif // DEBUG |
8142 } | 8142 } |
8143 } | 8143 } |
8144 | 8144 |
8145 } } // namespace v8::internal | 8145 } } // namespace v8::internal |
OLD | NEW |