OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 template VisitSpecialized<Symbol::kSize>); | 1960 template VisitSpecialized<Symbol::kSize>); |
1961 | 1961 |
1962 table_.Register(kVisitSharedFunctionInfo, | 1962 table_.Register(kVisitSharedFunctionInfo, |
1963 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1963 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1964 template VisitSpecialized<SharedFunctionInfo::kSize>); | 1964 template VisitSpecialized<SharedFunctionInfo::kSize>); |
1965 | 1965 |
1966 table_.Register(kVisitJSWeakMap, | 1966 table_.Register(kVisitJSWeakMap, |
1967 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1967 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1968 Visit); | 1968 Visit); |
1969 | 1969 |
| 1970 table_.Register(kVisitJSWeakSet, |
| 1971 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
| 1972 Visit); |
| 1973 |
1970 table_.Register(kVisitJSArrayBuffer, | 1974 table_.Register(kVisitJSArrayBuffer, |
1971 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1975 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1972 Visit); | 1976 Visit); |
1973 | 1977 |
1974 table_.Register(kVisitJSTypedArray, | 1978 table_.Register(kVisitJSTypedArray, |
1975 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1979 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
1976 Visit); | 1980 Visit); |
1977 | 1981 |
1978 table_.Register(kVisitJSDataView, | 1982 table_.Register(kVisitJSDataView, |
1979 &ObjectEvacuationStrategy<POINTER_OBJECT>:: | 1983 &ObjectEvacuationStrategy<POINTER_OBJECT>:: |
(...skipping 5755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7735 PrintF("sweepns=%.1f ", scopes_[Scope::MC_SWEEP_NEWSPACE]); | 7739 PrintF("sweepns=%.1f ", scopes_[Scope::MC_SWEEP_NEWSPACE]); |
7736 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]); | 7740 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]); |
7737 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); | 7741 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); |
7738 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); | 7742 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); |
7739 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); | 7743 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); |
7740 PrintF("compaction_ptrs=%.1f ", | 7744 PrintF("compaction_ptrs=%.1f ", |
7741 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); | 7745 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); |
7742 PrintF("intracompaction_ptrs=%.1f ", | 7746 PrintF("intracompaction_ptrs=%.1f ", |
7743 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); | 7747 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); |
7744 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]); | 7748 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]); |
7745 PrintF("weakmap_process=%.1f ", scopes_[Scope::MC_WEAKMAP_PROCESS]); | 7749 PrintF("weakcollection_process=%.1f ", |
7746 PrintF("weakmap_clear=%.1f ", scopes_[Scope::MC_WEAKMAP_CLEAR]); | 7750 scopes_[Scope::MC_WEAKCOLLECTION_PROCESS]); |
| 7751 PrintF("weakcollection_clear=%.1f ", |
| 7752 scopes_[Scope::MC_WEAKCOLLECTION_CLEAR]); |
7747 | 7753 |
7748 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", start_object_size_); | 7754 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", start_object_size_); |
7749 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", heap_->SizeOfObjects()); | 7755 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", heap_->SizeOfObjects()); |
7750 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", | 7756 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", |
7751 in_free_list_or_wasted_before_gc_); | 7757 in_free_list_or_wasted_before_gc_); |
7752 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", CountTotalHolesSize(heap_)); | 7758 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", CountTotalHolesSize(heap_)); |
7753 | 7759 |
7754 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_); | 7760 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_); |
7755 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_); | 7761 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_); |
7756 PrintF("nodes_died_in_new=%d ", nodes_died_in_new_space_); | 7762 PrintF("nodes_died_in_new=%d ", nodes_died_in_new_space_); |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8175 if (FLAG_parallel_recompilation) { | 8181 if (FLAG_parallel_recompilation) { |
8176 heap_->relocation_mutex_->Lock(); | 8182 heap_->relocation_mutex_->Lock(); |
8177 #ifdef DEBUG | 8183 #ifdef DEBUG |
8178 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8184 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
8179 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8185 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
8180 #endif // DEBUG | 8186 #endif // DEBUG |
8181 } | 8187 } |
8182 } | 8188 } |
8183 | 8189 |
8184 } } // namespace v8::internal | 8190 } } // namespace v8::internal |
OLD | NEW |