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 6124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6135 roots_[kStackLimitRootIndex] = | 6135 roots_[kStackLimitRootIndex] = |
6136 reinterpret_cast<Object*>( | 6136 reinterpret_cast<Object*>( |
6137 (isolate_->stack_guard()->jslimit() & ~kSmiTagMask) | kSmiTag); | 6137 (isolate_->stack_guard()->jslimit() & ~kSmiTagMask) | kSmiTag); |
6138 roots_[kRealStackLimitRootIndex] = | 6138 roots_[kRealStackLimitRootIndex] = |
6139 reinterpret_cast<Object*>( | 6139 reinterpret_cast<Object*>( |
6140 (isolate_->stack_guard()->real_jslimit() & ~kSmiTagMask) | kSmiTag); | 6140 (isolate_->stack_guard()->real_jslimit() & ~kSmiTagMask) | kSmiTag); |
6141 } | 6141 } |
6142 | 6142 |
6143 | 6143 |
6144 void Heap::TearDown() { | 6144 void Heap::TearDown() { |
| 6145 #ifdef DEBUG |
| 6146 if (FLAG_verify_heap) { |
| 6147 Verify(); |
| 6148 } |
| 6149 #endif |
6145 if (FLAG_print_cumulative_gc_stat) { | 6150 if (FLAG_print_cumulative_gc_stat) { |
6146 PrintF("\n\n"); | 6151 PrintF("\n\n"); |
6147 PrintF("gc_count=%d ", gc_count_); | 6152 PrintF("gc_count=%d ", gc_count_); |
6148 PrintF("mark_sweep_count=%d ", ms_count_); | 6153 PrintF("mark_sweep_count=%d ", ms_count_); |
6149 PrintF("max_gc_pause=%d ", get_max_gc_pause()); | 6154 PrintF("max_gc_pause=%d ", get_max_gc_pause()); |
6150 PrintF("min_in_mutator=%d ", get_min_in_mutator()); | 6155 PrintF("min_in_mutator=%d ", get_min_in_mutator()); |
6151 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ", | 6156 PrintF("max_alive_after_gc=%" V8_PTR_PREFIX "d ", |
6152 get_max_alive_after_gc()); | 6157 get_max_alive_after_gc()); |
6153 PrintF("\n\n"); | 6158 PrintF("\n\n"); |
6154 } | 6159 } |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7134 } else { | 7139 } else { |
7135 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. | 7140 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. |
7136 } | 7141 } |
7137 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = | 7142 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = |
7138 reinterpret_cast<Address>(p); | 7143 reinterpret_cast<Address>(p); |
7139 remembered_unmapped_pages_index_++; | 7144 remembered_unmapped_pages_index_++; |
7140 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; | 7145 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; |
7141 } | 7146 } |
7142 | 7147 |
7143 } } // namespace v8::internal | 7148 } } // namespace v8::internal |
OLD | NEW |