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 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2366 | 2366 |
2367 // Remove object groups after marking phase. | 2367 // Remove object groups after marking phase. |
2368 heap()->isolate()->global_handles()->RemoveObjectGroups(); | 2368 heap()->isolate()->global_handles()->RemoveObjectGroups(); |
2369 heap()->isolate()->global_handles()->RemoveImplicitRefGroups(); | 2369 heap()->isolate()->global_handles()->RemoveImplicitRefGroups(); |
2370 | 2370 |
2371 // Flush code from collected candidates. | 2371 // Flush code from collected candidates. |
2372 if (is_code_flushing_enabled()) { | 2372 if (is_code_flushing_enabled()) { |
2373 code_flusher_->ProcessCandidates(); | 2373 code_flusher_->ProcessCandidates(); |
2374 } | 2374 } |
2375 | 2375 |
2376 if (!FLAG_counting_profiler) { | 2376 if (!FLAG_watch_ic_patching) { |
2377 // Clean up dead objects from the runtime profiler. | 2377 // Clean up dead objects from the runtime profiler. |
2378 heap()->isolate()->runtime_profiler()->RemoveDeadSamples(); | 2378 heap()->isolate()->runtime_profiler()->RemoveDeadSamples(); |
2379 } | 2379 } |
2380 } | 2380 } |
2381 | 2381 |
2382 | 2382 |
2383 void MarkCompactCollector::ProcessMapCaches() { | 2383 void MarkCompactCollector::ProcessMapCaches() { |
2384 Object* raw_context = heap()->global_contexts_list_; | 2384 Object* raw_context = heap()->global_contexts_list_; |
2385 while (raw_context != heap()->undefined_value()) { | 2385 while (raw_context != heap()->undefined_value()) { |
2386 Context* context = reinterpret_cast<Context*>(raw_context); | 2386 Context* context = reinterpret_cast<Context*>(raw_context); |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3376 | 3376 |
3377 // Update pointer from the global contexts list. | 3377 // Update pointer from the global contexts list. |
3378 updating_visitor.VisitPointer(heap_->global_contexts_list_address()); | 3378 updating_visitor.VisitPointer(heap_->global_contexts_list_address()); |
3379 | 3379 |
3380 heap_->symbol_table()->Iterate(&updating_visitor); | 3380 heap_->symbol_table()->Iterate(&updating_visitor); |
3381 | 3381 |
3382 // Update pointers from external string table. | 3382 // Update pointers from external string table. |
3383 heap_->UpdateReferencesInExternalStringTable( | 3383 heap_->UpdateReferencesInExternalStringTable( |
3384 &UpdateReferenceInExternalStringTableEntry); | 3384 &UpdateReferenceInExternalStringTableEntry); |
3385 | 3385 |
3386 if (!FLAG_counting_profiler) { | 3386 if (!FLAG_watch_ic_patching) { |
3387 // Update JSFunction pointers from the runtime profiler. | 3387 // Update JSFunction pointers from the runtime profiler. |
3388 heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact( | 3388 heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact( |
3389 &updating_visitor); | 3389 &updating_visitor); |
3390 } | 3390 } |
3391 | 3391 |
3392 EvacuationWeakObjectRetainer evacuation_object_retainer; | 3392 EvacuationWeakObjectRetainer evacuation_object_retainer; |
3393 heap()->ProcessWeakReferences(&evacuation_object_retainer); | 3393 heap()->ProcessWeakReferences(&evacuation_object_retainer); |
3394 | 3394 |
3395 // Visit invalidated code (we ignored all slots on it) and clear mark-bits | 3395 // Visit invalidated code (we ignored all slots on it) and clear mark-bits |
3396 // under it. | 3396 // under it. |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4111 while (buffer != NULL) { | 4111 while (buffer != NULL) { |
4112 SlotsBuffer* next_buffer = buffer->next(); | 4112 SlotsBuffer* next_buffer = buffer->next(); |
4113 DeallocateBuffer(buffer); | 4113 DeallocateBuffer(buffer); |
4114 buffer = next_buffer; | 4114 buffer = next_buffer; |
4115 } | 4115 } |
4116 *buffer_address = NULL; | 4116 *buffer_address = NULL; |
4117 } | 4117 } |
4118 | 4118 |
4119 | 4119 |
4120 } } // namespace v8::internal | 4120 } } // namespace v8::internal |
OLD | NEW |