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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 isolate_->global_handles()->IterateNewSpaceWeakIndependentRoots( | 1194 isolate_->global_handles()->IterateNewSpaceWeakIndependentRoots( |
1195 &scavenge_visitor); | 1195 &scavenge_visitor); |
1196 new_space_front = DoScavenge(&scavenge_visitor, new_space_front); | 1196 new_space_front = DoScavenge(&scavenge_visitor, new_space_front); |
1197 | 1197 |
1198 UpdateNewSpaceReferencesInExternalStringTable( | 1198 UpdateNewSpaceReferencesInExternalStringTable( |
1199 &UpdateNewSpaceReferenceInExternalStringTableEntry); | 1199 &UpdateNewSpaceReferenceInExternalStringTableEntry); |
1200 | 1200 |
1201 promotion_queue_.Destroy(); | 1201 promotion_queue_.Destroy(); |
1202 | 1202 |
1203 LiveObjectList::UpdateReferencesForScavengeGC(); | 1203 LiveObjectList::UpdateReferencesForScavengeGC(); |
1204 if (!FLAG_counting_profiler) { | 1204 if (!FLAG_watch_ic_patching) { |
1205 isolate()->runtime_profiler()->UpdateSamplesAfterScavenge(); | 1205 isolate()->runtime_profiler()->UpdateSamplesAfterScavenge(); |
1206 } | 1206 } |
1207 incremental_marking()->UpdateMarkingDequeAfterScavenge(); | 1207 incremental_marking()->UpdateMarkingDequeAfterScavenge(); |
1208 | 1208 |
1209 ASSERT(new_space_front == new_space_.top()); | 1209 ASSERT(new_space_front == new_space_.top()); |
1210 | 1210 |
1211 // Set age mark. | 1211 // Set age mark. |
1212 new_space_.set_age_mark(new_space_.top()); | 1212 new_space_.set_age_mark(new_space_.top()); |
1213 | 1213 |
1214 new_space_.LowerInlineAllocationLimit( | 1214 new_space_.LowerInlineAllocationLimit( |
(...skipping 5666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6881 isolate_->heap()->store_buffer()->Compact(); | 6881 isolate_->heap()->store_buffer()->Compact(); |
6882 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6882 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6883 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6883 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6884 next = chunk->next_chunk(); | 6884 next = chunk->next_chunk(); |
6885 isolate_->memory_allocator()->Free(chunk); | 6885 isolate_->memory_allocator()->Free(chunk); |
6886 } | 6886 } |
6887 chunks_queued_for_free_ = NULL; | 6887 chunks_queued_for_free_ = NULL; |
6888 } | 6888 } |
6889 | 6889 |
6890 } } // namespace v8::internal | 6890 } } // namespace v8::internal |
OLD | NEW |