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

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

Issue 7864025: Fix two bugs in the code compaction: (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 3 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/incremental-marking.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 // Update pointer from the global contexts list. 2830 // Update pointer from the global contexts list.
2831 updating_visitor.VisitPointer(heap_->global_contexts_list_address()); 2831 updating_visitor.VisitPointer(heap_->global_contexts_list_address());
2832 2832
2833 heap_->symbol_table()->Iterate(&updating_visitor); 2833 heap_->symbol_table()->Iterate(&updating_visitor);
2834 2834
2835 // Update pointers from external string table. 2835 // Update pointers from external string table.
2836 heap_->UpdateReferencesInExternalStringTable( 2836 heap_->UpdateReferencesInExternalStringTable(
2837 &UpdateReferenceInExternalStringTableEntry); 2837 &UpdateReferenceInExternalStringTableEntry);
2838 2838
2839 // Update JSFunction pointers from the runtime profiler. 2839 // Update JSFunction pointers from the runtime profiler.
2840 heap_->isolate()->runtime_profiler()->UpdateSamplesAfterScavenge(); 2840 heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact(
2841 &updating_visitor);
2841 2842
2842 EvacuationWeakObjectRetainer evacuation_object_retainer; 2843 EvacuationWeakObjectRetainer evacuation_object_retainer;
2843 heap()->ProcessWeakReferences(&evacuation_object_retainer); 2844 heap()->ProcessWeakReferences(&evacuation_object_retainer);
2844 2845
2845 #ifdef DEBUG 2846 #ifdef DEBUG
2846 if (FLAG_verify_heap) { 2847 if (FLAG_verify_heap) {
2847 VerifyEvacuation(heap_); 2848 VerifyEvacuation(heap_);
2848 } 2849 }
2849 #endif 2850 #endif
2850 2851
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 while (buffer != NULL) { 3519 while (buffer != NULL) {
3519 SlotsBuffer* next_buffer = buffer->next(); 3520 SlotsBuffer* next_buffer = buffer->next();
3520 DeallocateBuffer(buffer); 3521 DeallocateBuffer(buffer);
3521 buffer = next_buffer; 3522 buffer = next_buffer;
3522 } 3523 }
3523 *buffer_address = NULL; 3524 *buffer_address = NULL;
3524 } 3525 }
3525 3526
3526 3527
3527 } } // namespace v8::internal 3528 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698