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 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4915 v->Synchronize(VisitorSynchronization::kBuiltins); | 4915 v->Synchronize(VisitorSynchronization::kBuiltins); |
4916 isolate_->interpreter()->IterateDispatchTable(v); | 4916 isolate_->interpreter()->IterateDispatchTable(v); |
4917 v->Synchronize(VisitorSynchronization::kDispatchTable); | 4917 v->Synchronize(VisitorSynchronization::kDispatchTable); |
4918 } | 4918 } |
4919 | 4919 |
4920 // Iterate over global handles. | 4920 // Iterate over global handles. |
4921 switch (mode) { | 4921 switch (mode) { |
4922 case VISIT_ONLY_STRONG_ROOT_LIST: | 4922 case VISIT_ONLY_STRONG_ROOT_LIST: |
4923 UNREACHABLE(); | 4923 UNREACHABLE(); |
4924 break; | 4924 break; |
| 4925 case VISIT_ONLY_STRONG_FOR_SERIALIZATION: |
| 4926 break; |
4925 case VISIT_ONLY_STRONG: | 4927 case VISIT_ONLY_STRONG: |
4926 case VISIT_ONLY_STRONG_FOR_SERIALIZATION: | |
4927 isolate_->global_handles()->IterateStrongRoots(v); | 4928 isolate_->global_handles()->IterateStrongRoots(v); |
4928 break; | 4929 break; |
4929 case VISIT_ALL_IN_SCAVENGE: | 4930 case VISIT_ALL_IN_SCAVENGE: |
4930 isolate_->global_handles()->IterateNewSpaceStrongAndDependentRoots(v); | 4931 isolate_->global_handles()->IterateNewSpaceStrongAndDependentRoots(v); |
4931 break; | 4932 break; |
4932 case VISIT_ALL_IN_SWEEP_NEWSPACE: | 4933 case VISIT_ALL_IN_SWEEP_NEWSPACE: |
4933 case VISIT_ALL: | 4934 case VISIT_ALL: |
4934 isolate_->global_handles()->IterateAllRoots(v); | 4935 isolate_->global_handles()->IterateAllRoots(v); |
4935 break; | 4936 break; |
4936 } | 4937 } |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6476 } | 6477 } |
6477 | 6478 |
6478 | 6479 |
6479 // static | 6480 // static |
6480 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6481 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6481 return StaticVisitorBase::GetVisitorId(map); | 6482 return StaticVisitorBase::GetVisitorId(map); |
6482 } | 6483 } |
6483 | 6484 |
6484 } // namespace internal | 6485 } // namespace internal |
6485 } // namespace v8 | 6486 } // namespace v8 |
OLD | NEW |