| 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/v8.h" | 5 #include "src/v8.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 5107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5118 | 5118 |
| 5119 new_space_.Verify(); | 5119 new_space_.Verify(); |
| 5120 | 5120 |
| 5121 old_space_->Verify(&visitor); | 5121 old_space_->Verify(&visitor); |
| 5122 map_space_->Verify(&visitor); | 5122 map_space_->Verify(&visitor); |
| 5123 | 5123 |
| 5124 VerifyPointersVisitor no_dirty_regions_visitor; | 5124 VerifyPointersVisitor no_dirty_regions_visitor; |
| 5125 code_space_->Verify(&no_dirty_regions_visitor); | 5125 code_space_->Verify(&no_dirty_regions_visitor); |
| 5126 | 5126 |
| 5127 lo_space_->Verify(); | 5127 lo_space_->Verify(); |
| 5128 | |
| 5129 mark_compact_collector_.VerifyWeakEmbeddedObjectsInCode(); | |
| 5130 if (FLAG_omit_map_checks_for_leaf_maps) { | |
| 5131 mark_compact_collector_.VerifyOmittedMapChecks(); | |
| 5132 } | |
| 5133 } | 5128 } |
| 5134 #endif | 5129 #endif |
| 5135 | 5130 |
| 5136 | 5131 |
| 5137 void Heap::ZapFromSpace() { | 5132 void Heap::ZapFromSpace() { |
| 5138 if (!new_space_.IsFromSpaceCommitted()) return; | 5133 if (!new_space_.IsFromSpaceCommitted()) return; |
| 5139 NewSpacePageIterator it(new_space_.FromSpaceStart(), | 5134 NewSpacePageIterator it(new_space_.FromSpaceStart(), |
| 5140 new_space_.FromSpaceEnd()); | 5135 new_space_.FromSpaceEnd()); |
| 5141 while (it.has_next()) { | 5136 while (it.has_next()) { |
| 5142 NewSpacePage* page = it.next(); | 5137 NewSpacePage* page = it.next(); |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6866 *object_type = "CODE_TYPE"; \ | 6861 *object_type = "CODE_TYPE"; \ |
| 6867 *object_sub_type = "CODE_AGE/" #name; \ | 6862 *object_sub_type = "CODE_AGE/" #name; \ |
| 6868 return true; | 6863 return true; |
| 6869 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6864 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
| 6870 #undef COMPARE_AND_RETURN_NAME | 6865 #undef COMPARE_AND_RETURN_NAME |
| 6871 } | 6866 } |
| 6872 return false; | 6867 return false; |
| 6873 } | 6868 } |
| 6874 } // namespace internal | 6869 } // namespace internal |
| 6875 } // namespace v8 | 6870 } // namespace v8 |
| OLD | NEW |