OLD | NEW |
---|---|
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 Loading... | |
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 ObjectVisitor::VisitSharedFunctionInfo(shared); | |
Michael Starzinger
2012/04/03 16:38:13
You don't need that call anymore.
| |
213 } | |
214 | |
208 void VisitPointer(Object** p) { | 215 void VisitPointer(Object** p) { |
209 Object* obj = *p; | 216 Object* obj = *p; |
210 if (obj->NonFailureIsHeapObject()) { | 217 if (obj->NonFailureIsHeapObject()) { |
211 heap_->mark_compact_collector()->RecordSlot(p, p, obj); | 218 heap_->mark_compact_collector()->RecordSlot(p, p, obj); |
212 MarkObject(obj); | 219 MarkObject(obj); |
213 } | 220 } |
214 } | 221 } |
215 | 222 |
216 void VisitPointers(Object** start, Object** end) { | 223 void VisitPointers(Object** start, Object** end) { |
217 for (Object** p = start; p < end; p++) { | 224 for (Object** p = start; p < end; p++) { |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
929 allocation_marking_factor_ = kInitialAllocationMarkingFactor; | 936 allocation_marking_factor_ = kInitialAllocationMarkingFactor; |
930 bytes_scanned_ = 0; | 937 bytes_scanned_ = 0; |
931 } | 938 } |
932 | 939 |
933 | 940 |
934 int64_t IncrementalMarking::SpaceLeftInOldSpace() { | 941 int64_t IncrementalMarking::SpaceLeftInOldSpace() { |
935 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); | 942 return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); |
936 } | 943 } |
937 | 944 |
938 } } // namespace v8::internal | 945 } } // namespace v8::internal |
OLD | NEW |