| 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 #include "src/heap/array-buffer-tracker.h" | 8 #include "src/heap/array-buffer-tracker.h" |
| 9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/ic/ic-state.h" | 10 #include "src/ic/ic-state.h" |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 | 406 |
| 407 template <typename StaticVisitor> | 407 template <typename StaticVisitor> |
| 408 void StaticMarkingVisitor<StaticVisitor>::VisitCode(Map* map, | 408 void StaticMarkingVisitor<StaticVisitor>::VisitCode(Map* map, |
| 409 HeapObject* object) { | 409 HeapObject* object) { |
| 410 typedef FlexibleBodyVisitor<StaticVisitor, Code::BodyDescriptor, void> | 410 typedef FlexibleBodyVisitor<StaticVisitor, Code::BodyDescriptor, void> |
| 411 CodeBodyVisitor; | 411 CodeBodyVisitor; |
| 412 Heap* heap = map->GetHeap(); | 412 Heap* heap = map->GetHeap(); |
| 413 Code* code = Code::cast(object); | 413 Code* code = Code::cast(object); |
| 414 if (FLAG_age_code && !heap->isolate()->serializer_enabled()) { | 414 if (FLAG_age_code && !heap->isolate()->serializer_enabled()) { |
| 415 code->MakeOlder(heap->mark_compact_collector()->marking_parity()); | 415 code->MakeOlder(); |
| 416 } | 416 } |
| 417 CodeBodyVisitor::Visit(map, object); | 417 CodeBodyVisitor::Visit(map, object); |
| 418 } | 418 } |
| 419 | 419 |
| 420 | 420 |
| 421 template <typename StaticVisitor> | 421 template <typename StaticVisitor> |
| 422 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( | 422 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( |
| 423 Map* map, HeapObject* object) { | 423 Map* map, HeapObject* object) { |
| 424 Heap* heap = map->GetHeap(); | 424 Heap* heap = map->GetHeap(); |
| 425 SharedFunctionInfo* shared = SharedFunctionInfo::cast(object); | 425 SharedFunctionInfo* shared = SharedFunctionInfo::cast(object); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, | 648 typedef FlexibleBodyVisitor<StaticVisitor, JSFunction::BodyDescriptorWeakCode, |
| 649 void> JSFunctionWeakCodeBodyVisitor; | 649 void> JSFunctionWeakCodeBodyVisitor; |
| 650 JSFunctionWeakCodeBodyVisitor::Visit(map, object); | 650 JSFunctionWeakCodeBodyVisitor::Visit(map, object); |
| 651 } | 651 } |
| 652 | 652 |
| 653 | 653 |
| 654 } // namespace internal | 654 } // namespace internal |
| 655 } // namespace v8 | 655 } // namespace v8 |
| 656 | 656 |
| 657 #endif // V8_OBJECTS_VISITING_INL_H_ | 657 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |