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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "accessors.h" | 7 #include "accessors.h" |
8 #include "api.h" | 8 #include "api.h" |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4915 v->VisitPointer(BitCast<Object**>(&hidden_string_)); | 4915 v->VisitPointer(BitCast<Object**>(&hidden_string_)); |
4916 v->Synchronize(VisitorSynchronization::kInternalizedString); | 4916 v->Synchronize(VisitorSynchronization::kInternalizedString); |
4917 | 4917 |
4918 isolate_->bootstrapper()->Iterate(v); | 4918 isolate_->bootstrapper()->Iterate(v); |
4919 v->Synchronize(VisitorSynchronization::kBootstrapper); | 4919 v->Synchronize(VisitorSynchronization::kBootstrapper); |
4920 isolate_->Iterate(v); | 4920 isolate_->Iterate(v); |
4921 v->Synchronize(VisitorSynchronization::kTop); | 4921 v->Synchronize(VisitorSynchronization::kTop); |
4922 Relocatable::Iterate(isolate_, v); | 4922 Relocatable::Iterate(isolate_, v); |
4923 v->Synchronize(VisitorSynchronization::kRelocatable); | 4923 v->Synchronize(VisitorSynchronization::kRelocatable); |
4924 | 4924 |
4925 isolate_->debug()->Iterate(v); | |
4926 if (isolate_->deoptimizer_data() != NULL) { | 4925 if (isolate_->deoptimizer_data() != NULL) { |
4927 isolate_->deoptimizer_data()->Iterate(v); | 4926 isolate_->deoptimizer_data()->Iterate(v); |
4928 } | 4927 } |
4929 v->Synchronize(VisitorSynchronization::kDebug); | 4928 v->Synchronize(VisitorSynchronization::kDebug); |
4930 isolate_->compilation_cache()->Iterate(v); | 4929 isolate_->compilation_cache()->Iterate(v); |
4931 v->Synchronize(VisitorSynchronization::kCompilationCache); | 4930 v->Synchronize(VisitorSynchronization::kCompilationCache); |
4932 | 4931 |
4933 // Iterate over local handles in handle scopes. | 4932 // Iterate over local handles in handle scopes. |
4934 isolate_->handle_scope_implementer()->Iterate(v); | 4933 isolate_->handle_scope_implementer()->Iterate(v); |
4935 isolate_->IterateDeferredHandles(v); | 4934 isolate_->IterateDeferredHandles(v); |
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6478 static_cast<int>(object_sizes_last_time_[index])); | 6477 static_cast<int>(object_sizes_last_time_[index])); |
6479 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6478 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6480 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6479 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6481 | 6480 |
6482 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6481 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6483 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6482 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6484 ClearObjectStats(); | 6483 ClearObjectStats(); |
6485 } | 6484 } |
6486 | 6485 |
6487 } } // namespace v8::internal | 6486 } } // namespace v8::internal |
OLD | NEW |