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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4586 v->VisitPointers(&roots_[0], &roots_[kStrongRootListLength]); | 4586 v->VisitPointers(&roots_[0], &roots_[kStrongRootListLength]); |
4587 v->Synchronize(VisitorSynchronization::kStrongRootList); | 4587 v->Synchronize(VisitorSynchronization::kStrongRootList); |
4588 | 4588 |
4589 isolate_->bootstrapper()->Iterate(v); | 4589 isolate_->bootstrapper()->Iterate(v); |
4590 v->Synchronize(VisitorSynchronization::kBootstrapper); | 4590 v->Synchronize(VisitorSynchronization::kBootstrapper); |
4591 isolate_->Iterate(v); | 4591 isolate_->Iterate(v); |
4592 v->Synchronize(VisitorSynchronization::kTop); | 4592 v->Synchronize(VisitorSynchronization::kTop); |
4593 Relocatable::Iterate(isolate_, v); | 4593 Relocatable::Iterate(isolate_, v); |
4594 v->Synchronize(VisitorSynchronization::kRelocatable); | 4594 v->Synchronize(VisitorSynchronization::kRelocatable); |
4595 | 4595 |
4596 if (isolate_->deoptimizer_data() != NULL) { | |
4597 isolate_->deoptimizer_data()->Iterate(v); | |
4598 } | |
4599 v->Synchronize(VisitorSynchronization::kDebug); | |
4600 isolate_->compilation_cache()->Iterate(v); | 4596 isolate_->compilation_cache()->Iterate(v); |
4601 v->Synchronize(VisitorSynchronization::kCompilationCache); | 4597 v->Synchronize(VisitorSynchronization::kCompilationCache); |
4602 | 4598 |
4603 // Iterate over local handles in handle scopes. | 4599 // Iterate over local handles in handle scopes. |
4604 isolate_->handle_scope_implementer()->Iterate(v); | 4600 isolate_->handle_scope_implementer()->Iterate(v); |
4605 isolate_->IterateDeferredHandles(v); | 4601 isolate_->IterateDeferredHandles(v); |
4606 v->Synchronize(VisitorSynchronization::kHandleScope); | 4602 v->Synchronize(VisitorSynchronization::kHandleScope); |
4607 | 4603 |
4608 // Iterate over the builtin code objects and code stubs in the | 4604 // Iterate over the builtin code objects and code stubs in the |
4609 // heap. Note that it is not necessary to iterate over code objects | 4605 // heap. Note that it is not necessary to iterate over code objects |
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6214 } | 6210 } |
6215 | 6211 |
6216 | 6212 |
6217 // static | 6213 // static |
6218 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6214 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6219 return StaticVisitorBase::GetVisitorId(map); | 6215 return StaticVisitorBase::GetVisitorId(map); |
6220 } | 6216 } |
6221 | 6217 |
6222 } // namespace internal | 6218 } // namespace internal |
6223 } // namespace v8 | 6219 } // namespace v8 |
OLD | NEW |