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

Side by Side Diff: src/heap.cc

Issue 10778036: The deferred handes list belongs to the Isolate and not to the (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 8 years, 5 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/handles.h ('k') | src/isolate.h » ('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 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 5680 matching lines...) Expand 10 before | Expand all | Expand 10 after
5691 if (isolate_->deoptimizer_data() != NULL) { 5691 if (isolate_->deoptimizer_data() != NULL) {
5692 isolate_->deoptimizer_data()->Iterate(v); 5692 isolate_->deoptimizer_data()->Iterate(v);
5693 } 5693 }
5694 #endif 5694 #endif
5695 v->Synchronize(VisitorSynchronization::kDebug); 5695 v->Synchronize(VisitorSynchronization::kDebug);
5696 isolate_->compilation_cache()->Iterate(v); 5696 isolate_->compilation_cache()->Iterate(v);
5697 v->Synchronize(VisitorSynchronization::kCompilationCache); 5697 v->Synchronize(VisitorSynchronization::kCompilationCache);
5698 5698
5699 // Iterate over local handles in handle scopes. 5699 // Iterate over local handles in handle scopes.
5700 isolate_->handle_scope_implementer()->Iterate(v); 5700 isolate_->handle_scope_implementer()->Iterate(v);
5701 isolate_->IterateDeferredHandles(v);
5701 v->Synchronize(VisitorSynchronization::kHandleScope); 5702 v->Synchronize(VisitorSynchronization::kHandleScope);
5702 5703
5703 // Iterate over the builtin code objects and code stubs in the 5704 // Iterate over the builtin code objects and code stubs in the
5704 // heap. Note that it is not necessary to iterate over code objects 5705 // heap. Note that it is not necessary to iterate over code objects
5705 // on scavenge collections. 5706 // on scavenge collections.
5706 if (mode != VISIT_ALL_IN_SCAVENGE) { 5707 if (mode != VISIT_ALL_IN_SCAVENGE) {
5707 isolate_->builtins()->IterateBuiltins(v); 5708 isolate_->builtins()->IterateBuiltins(v);
5708 } 5709 }
5709 v->Synchronize(VisitorSynchronization::kBuiltins); 5710 v->Synchronize(VisitorSynchronization::kBuiltins);
5710 5711
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
7222 static_cast<int>(object_sizes_last_time_[index])); 7223 static_cast<int>(object_sizes_last_time_[index]));
7223 CODE_KIND_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7224 CODE_KIND_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7224 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7225 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7225 7226
7226 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7227 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7227 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7228 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7228 ClearObjectStats(); 7229 ClearObjectStats();
7229 } 7230 }
7230 7231
7231 } } // namespace v8::internal 7232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698