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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 5749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5760 external_string_table_.TearDown(); | 5760 external_string_table_.TearDown(); |
5761 | 5761 |
5762 mark_compact_collector()->TearDown(); | 5762 mark_compact_collector()->TearDown(); |
5763 | 5763 |
5764 delete tracer_; | 5764 delete tracer_; |
5765 tracer_ = nullptr; | 5765 tracer_ = nullptr; |
5766 | 5766 |
5767 new_space_.TearDown(); | 5767 new_space_.TearDown(); |
5768 | 5768 |
5769 if (old_space_ != NULL) { | 5769 if (old_space_ != NULL) { |
5770 old_space_->TearDown(); | |
5771 delete old_space_; | 5770 delete old_space_; |
5772 old_space_ = NULL; | 5771 old_space_ = NULL; |
5773 } | 5772 } |
5774 | 5773 |
5775 if (code_space_ != NULL) { | 5774 if (code_space_ != NULL) { |
5776 code_space_->TearDown(); | |
5777 delete code_space_; | 5775 delete code_space_; |
5778 code_space_ = NULL; | 5776 code_space_ = NULL; |
5779 } | 5777 } |
5780 | 5778 |
5781 if (map_space_ != NULL) { | 5779 if (map_space_ != NULL) { |
5782 map_space_->TearDown(); | |
5783 delete map_space_; | 5780 delete map_space_; |
5784 map_space_ = NULL; | 5781 map_space_ = NULL; |
5785 } | 5782 } |
5786 | 5783 |
5787 if (lo_space_ != NULL) { | 5784 if (lo_space_ != NULL) { |
5788 lo_space_->TearDown(); | 5785 lo_space_->TearDown(); |
5789 delete lo_space_; | 5786 delete lo_space_; |
5790 lo_space_ = NULL; | 5787 lo_space_ = NULL; |
5791 } | 5788 } |
5792 | 5789 |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6775 *object_type = "CODE_TYPE"; \ | 6772 *object_type = "CODE_TYPE"; \ |
6776 *object_sub_type = "CODE_AGE/" #name; \ | 6773 *object_sub_type = "CODE_AGE/" #name; \ |
6777 return true; | 6774 return true; |
6778 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6775 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6779 #undef COMPARE_AND_RETURN_NAME | 6776 #undef COMPARE_AND_RETURN_NAME |
6780 } | 6777 } |
6781 return false; | 6778 return false; |
6782 } | 6779 } |
6783 } // namespace internal | 6780 } // namespace internal |
6784 } // namespace v8 | 6781 } // namespace v8 |
OLD | NEW |