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

Side by Side Diff: src/heap.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/frames.cc ('k') | src/incremental-marking.cc » ('j') | 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 4721 matching lines...) Expand 10 before | Expand all | Expand 10 after
4732 isolate_->compilation_cache()->Iterate(v); 4732 isolate_->compilation_cache()->Iterate(v);
4733 v->Synchronize("compilationcache"); 4733 v->Synchronize("compilationcache");
4734 4734
4735 // Iterate over local handles in handle scopes. 4735 // Iterate over local handles in handle scopes.
4736 isolate_->handle_scope_implementer()->Iterate(v); 4736 isolate_->handle_scope_implementer()->Iterate(v);
4737 v->Synchronize("handlescope"); 4737 v->Synchronize("handlescope");
4738 4738
4739 // Iterate over the builtin code objects and code stubs in the 4739 // Iterate over the builtin code objects and code stubs in the
4740 // heap. Note that it is not necessary to iterate over code objects 4740 // heap. Note that it is not necessary to iterate over code objects
4741 // on scavenge collections. 4741 // on scavenge collections.
4742 if (mode != VISIT_ALL_IN_SCAVENGE && 4742 if (mode != VISIT_ALL_IN_SCAVENGE) {
4743 mode != VISIT_ALL_IN_SWEEP_NEWSPACE) {
4744 isolate_->builtins()->IterateBuiltins(v); 4743 isolate_->builtins()->IterateBuiltins(v);
4745 } 4744 }
4746 v->Synchronize("builtins"); 4745 v->Synchronize("builtins");
4747 4746
4748 // Iterate over global handles. 4747 // Iterate over global handles.
4749 switch (mode) { 4748 switch (mode) {
4750 case VISIT_ONLY_STRONG: 4749 case VISIT_ONLY_STRONG:
4751 isolate_->global_handles()->IterateStrongRoots(v); 4750 isolate_->global_handles()->IterateStrongRoots(v);
4752 break; 4751 break;
4753 case VISIT_ALL_IN_SCAVENGE: 4752 case VISIT_ALL_IN_SCAVENGE:
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
6117 } 6116 }
6118 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6117 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6119 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6118 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6120 next = chunk->next_chunk(); 6119 next = chunk->next_chunk();
6121 isolate_->memory_allocator()->Free(chunk); 6120 isolate_->memory_allocator()->Free(chunk);
6122 } 6121 }
6123 chunks_queued_for_free_ = NULL; 6122 chunks_queued_for_free_ = NULL;
6124 } 6123 }
6125 6124
6126 } } // namespace v8::internal 6125 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698