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

Side by Side Diff: src/objects-visiting-inl.h

Issue 10823082: Make incremental marking clear type feedback cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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/objects-visiting.h ('k') | test/cctest/test-heap.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 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 idx < Context::GLOBAL_CONTEXT_SLOTS; 209 idx < Context::GLOBAL_CONTEXT_SLOTS;
210 ++idx) { 210 ++idx) {
211 Object** slot = 211 Object** slot =
212 HeapObject::RawField(object, FixedArray::OffsetOfElementAt(idx)); 212 HeapObject::RawField(object, FixedArray::OffsetOfElementAt(idx));
213 collector->RecordSlot(slot, slot, *slot); 213 collector->RecordSlot(slot, slot, *slot);
214 } 214 }
215 } 215 }
216 216
217 217
218 template<typename StaticVisitor> 218 template<typename StaticVisitor>
219 void StaticMarkingVisitor<StaticVisitor>::VisitCode(
220 Map* map, HeapObject* object) {
221 Heap* heap = map->GetHeap();
222 Code* code = Code::cast(object);
223 if (FLAG_cleanup_code_caches_at_gc) {
224 code->ClearTypeFeedbackCells(heap);
225 }
226 code->CodeIterateBody<StaticVisitor>(heap);
227 }
228
229
230 template<typename StaticVisitor>
219 void StaticMarkingVisitor<StaticVisitor>::VisitJSRegExp( 231 void StaticMarkingVisitor<StaticVisitor>::VisitJSRegExp(
220 Map* map, HeapObject* object) { 232 Map* map, HeapObject* object) {
221 int last_property_offset = 233 int last_property_offset =
222 JSRegExp::kSize + kPointerSize * map->inobject_properties(); 234 JSRegExp::kSize + kPointerSize * map->inobject_properties();
223 StaticVisitor::VisitPointers(map->GetHeap(), 235 StaticVisitor::VisitPointers(map->GetHeap(),
224 HeapObject::RawField(object, JSRegExp::kPropertiesOffset), 236 HeapObject::RawField(object, JSRegExp::kPropertiesOffset),
225 HeapObject::RawField(object, last_property_offset)); 237 HeapObject::RawField(object, last_property_offset));
226 } 238 }
227 239
228 240
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 RelocIterator it(this, mode_mask); 289 RelocIterator it(this, mode_mask);
278 for (; !it.done(); it.next()) { 290 for (; !it.done(); it.next()) {
279 it.rinfo()->template Visit<StaticVisitor>(heap); 291 it.rinfo()->template Visit<StaticVisitor>(heap);
280 } 292 }
281 } 293 }
282 294
283 295
284 } } // namespace v8::internal 296 } } // namespace v8::internal
285 297
286 #endif // V8_OBJECTS_VISITING_INL_H_ 298 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW
« no previous file with comments | « src/objects-visiting.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698