| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_VISITING_INL_H_ | 5 #ifndef V8_OBJECTS_VISITING_INL_H_ |
| 6 #define V8_OBJECTS_VISITING_INL_H_ | 6 #define V8_OBJECTS_VISITING_INL_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 template <typename StaticVisitor> | 440 template <typename StaticVisitor> |
| 441 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( | 441 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( |
| 442 Map* map, HeapObject* object) { | 442 Map* map, HeapObject* object) { |
| 443 Heap* heap = map->GetHeap(); | 443 Heap* heap = map->GetHeap(); |
| 444 SharedFunctionInfo* shared = SharedFunctionInfo::cast(object); | 444 SharedFunctionInfo* shared = SharedFunctionInfo::cast(object); |
| 445 if (shared->ic_age() != heap->global_ic_age()) { | 445 if (shared->ic_age() != heap->global_ic_age()) { |
| 446 shared->ResetForNewContext(heap->global_ic_age()); | 446 shared->ResetForNewContext(heap->global_ic_age()); |
| 447 } | 447 } |
| 448 if (FLAG_cleanup_code_caches_at_gc) { | 448 if (FLAG_cleanup_code_caches_at_gc) { |
| 449 shared->ClearTypeFeedbackInfo(); | 449 shared->ClearTypeFeedbackInfoAtGCTime(); |
| 450 } | 450 } |
| 451 if (FLAG_cache_optimized_code && FLAG_flush_optimized_code_cache && | 451 if (FLAG_cache_optimized_code && FLAG_flush_optimized_code_cache && |
| 452 !shared->optimized_code_map()->IsSmi()) { | 452 !shared->optimized_code_map()->IsSmi()) { |
| 453 // Always flush the optimized code map if requested by flag. | 453 // Always flush the optimized code map if requested by flag. |
| 454 shared->ClearOptimizedCodeMap(); | 454 shared->ClearOptimizedCodeMap(); |
| 455 } | 455 } |
| 456 MarkCompactCollector* collector = heap->mark_compact_collector(); | 456 MarkCompactCollector* collector = heap->mark_compact_collector(); |
| 457 if (collector->is_code_flushing_enabled()) { | 457 if (collector->is_code_flushing_enabled()) { |
| 458 if (FLAG_cache_optimized_code && !shared->optimized_code_map()->IsSmi()) { | 458 if (FLAG_cache_optimized_code && !shared->optimized_code_map()->IsSmi()) { |
| 459 // Add the shared function info holding an optimized code map to | 459 // Add the shared function info holding an optimized code map to |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 | 938 |
| 939 RelocIterator it(this, mode_mask); | 939 RelocIterator it(this, mode_mask); |
| 940 for (; !it.done(); it.next()) { | 940 for (; !it.done(); it.next()) { |
| 941 it.rinfo()->template Visit<StaticVisitor>(heap); | 941 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 942 } | 942 } |
| 943 } | 943 } |
| 944 } | 944 } |
| 945 } // namespace v8::internal | 945 } // namespace v8::internal |
| 946 | 946 |
| 947 #endif // V8_OBJECTS_VISITING_INL_H_ | 947 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |