| 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 5762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5773 external_string_table_.TearDown(); | 5773 external_string_table_.TearDown(); |
| 5774 | 5774 |
| 5775 mark_compact_collector()->TearDown(); | 5775 mark_compact_collector()->TearDown(); |
| 5776 | 5776 |
| 5777 delete tracer_; | 5777 delete tracer_; |
| 5778 tracer_ = nullptr; | 5778 tracer_ = nullptr; |
| 5779 | 5779 |
| 5780 new_space_.TearDown(); | 5780 new_space_.TearDown(); |
| 5781 | 5781 |
| 5782 if (old_space_ != NULL) { | 5782 if (old_space_ != NULL) { |
| 5783 old_space_->TearDown(); | |
| 5784 delete old_space_; | 5783 delete old_space_; |
| 5785 old_space_ = NULL; | 5784 old_space_ = NULL; |
| 5786 } | 5785 } |
| 5787 | 5786 |
| 5788 if (code_space_ != NULL) { | 5787 if (code_space_ != NULL) { |
| 5789 code_space_->TearDown(); | |
| 5790 delete code_space_; | 5788 delete code_space_; |
| 5791 code_space_ = NULL; | 5789 code_space_ = NULL; |
| 5792 } | 5790 } |
| 5793 | 5791 |
| 5794 if (map_space_ != NULL) { | 5792 if (map_space_ != NULL) { |
| 5795 map_space_->TearDown(); | |
| 5796 delete map_space_; | 5793 delete map_space_; |
| 5797 map_space_ = NULL; | 5794 map_space_ = NULL; |
| 5798 } | 5795 } |
| 5799 | 5796 |
| 5800 if (lo_space_ != NULL) { | 5797 if (lo_space_ != NULL) { |
| 5801 lo_space_->TearDown(); | 5798 lo_space_->TearDown(); |
| 5802 delete lo_space_; | 5799 delete lo_space_; |
| 5803 lo_space_ = NULL; | 5800 lo_space_ = NULL; |
| 5804 } | 5801 } |
| 5805 | 5802 |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6788 *object_type = "CODE_TYPE"; \ | 6785 *object_type = "CODE_TYPE"; \ |
| 6789 *object_sub_type = "CODE_AGE/" #name; \ | 6786 *object_sub_type = "CODE_AGE/" #name; \ |
| 6790 return true; | 6787 return true; |
| 6791 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6788 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
| 6792 #undef COMPARE_AND_RETURN_NAME | 6789 #undef COMPARE_AND_RETURN_NAME |
| 6793 } | 6790 } |
| 6794 return false; | 6791 return false; |
| 6795 } | 6792 } |
| 6796 } // namespace internal | 6793 } // namespace internal |
| 6797 } // namespace v8 | 6794 } // namespace v8 |
| OLD | NEW |