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

Side by Side Diff: src/incremental-marking.cc

Issue 9903019: Reset function info counters after context disposal in incremental marking step. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 8 years, 8 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 | « no previous file | src/objects.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 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 MarkObject(target); 198 MarkObject(target);
199 } 199 }
200 200
201 void VisitCodeEntry(Address entry_address) { 201 void VisitCodeEntry(Address entry_address) {
202 Object* target = Code::GetObjectFromEntryAddress(entry_address); 202 Object* target = Code::GetObjectFromEntryAddress(entry_address);
203 heap_->mark_compact_collector()-> 203 heap_->mark_compact_collector()->
204 RecordCodeEntrySlot(entry_address, Code::cast(target)); 204 RecordCodeEntrySlot(entry_address, Code::cast(target));
205 MarkObject(target); 205 MarkObject(target);
206 } 206 }
207 207
208 void VisitSharedFunctionInfo(SharedFunctionInfo* shared) {
209 if (shared->ic_age() != heap_->global_ic_age()) {
210 shared->ResetForNewContext(heap_->global_ic_age());
211 }
212 }
213
208 void VisitPointer(Object** p) { 214 void VisitPointer(Object** p) {
209 Object* obj = *p; 215 Object* obj = *p;
210 if (obj->NonFailureIsHeapObject()) { 216 if (obj->NonFailureIsHeapObject()) {
211 heap_->mark_compact_collector()->RecordSlot(p, p, obj); 217 heap_->mark_compact_collector()->RecordSlot(p, p, obj);
212 MarkObject(obj); 218 MarkObject(obj);
213 } 219 }
214 } 220 }
215 221
216 void VisitPointers(Object** start, Object** end) { 222 void VisitPointers(Object** start, Object** end) {
217 for (Object** p = start; p < end; p++) { 223 for (Object** p = start; p < end; p++) {
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 allocation_marking_factor_ = kInitialAllocationMarkingFactor; 935 allocation_marking_factor_ = kInitialAllocationMarkingFactor;
930 bytes_scanned_ = 0; 936 bytes_scanned_ = 0;
931 } 937 }
932 938
933 939
934 int64_t IncrementalMarking::SpaceLeftInOldSpace() { 940 int64_t IncrementalMarking::SpaceLeftInOldSpace() {
935 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); 941 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize();
936 } 942 }
937 943
938 } } // namespace v8::internal 944 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698