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 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5469 return lo_space_->SlowContains(addr); | 5469 return lo_space_->SlowContains(addr); |
5470 } | 5470 } |
5471 | 5471 |
5472 return false; | 5472 return false; |
5473 } | 5473 } |
5474 | 5474 |
5475 | 5475 |
5476 #ifdef VERIFY_HEAP | 5476 #ifdef VERIFY_HEAP |
5477 void Heap::Verify() { | 5477 void Heap::Verify() { |
5478 CHECK(HasBeenSetUp()); | 5478 CHECK(HasBeenSetUp()); |
| 5479 HandleScope scope(isolate()); |
5479 | 5480 |
5480 store_buffer()->Verify(); | 5481 store_buffer()->Verify(); |
5481 | 5482 |
5482 VerifyPointersVisitor visitor; | 5483 VerifyPointersVisitor visitor; |
5483 IterateRoots(&visitor, VISIT_ONLY_STRONG); | 5484 IterateRoots(&visitor, VISIT_ONLY_STRONG); |
5484 | 5485 |
5485 VerifySmisVisitor smis_visitor; | 5486 VerifySmisVisitor smis_visitor; |
5486 IterateSmiRoots(&smis_visitor); | 5487 IterateSmiRoots(&smis_visitor); |
5487 | 5488 |
5488 new_space_.Verify(); | 5489 new_space_.Verify(); |
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7356 static_cast<int>(object_sizes_last_time_[index])); | 7357 static_cast<int>(object_sizes_last_time_[index])); |
7357 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7358 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7358 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7359 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7359 | 7360 |
7360 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7361 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7361 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7362 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7362 ClearObjectStats(); | 7363 ClearObjectStats(); |
7363 } | 7364 } |
7364 | 7365 |
7365 } } // namespace v8::internal | 7366 } } // namespace v8::internal |
OLD | NEW |