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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "accessors.h" | 7 #include "accessors.h" |
8 #include "api.h" | 8 #include "api.h" |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 4601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4612 case CODE_SPACE: | 4612 case CODE_SPACE: |
4613 return code_space_->Contains(addr); | 4613 return code_space_->Contains(addr); |
4614 case MAP_SPACE: | 4614 case MAP_SPACE: |
4615 return map_space_->Contains(addr); | 4615 return map_space_->Contains(addr); |
4616 case CELL_SPACE: | 4616 case CELL_SPACE: |
4617 return cell_space_->Contains(addr); | 4617 return cell_space_->Contains(addr); |
4618 case PROPERTY_CELL_SPACE: | 4618 case PROPERTY_CELL_SPACE: |
4619 return property_cell_space_->Contains(addr); | 4619 return property_cell_space_->Contains(addr); |
4620 case LO_SPACE: | 4620 case LO_SPACE: |
4621 return lo_space_->SlowContains(addr); | 4621 return lo_space_->SlowContains(addr); |
4622 default: | 4622 case INVALID_SPACE: |
4623 break; | 4623 break; |
4624 } | 4624 } |
4625 UNREACHABLE(); | 4625 UNREACHABLE(); |
4626 return false; | 4626 return false; |
4627 } | 4627 } |
4628 | 4628 |
4629 | 4629 |
4630 #ifdef VERIFY_HEAP | 4630 #ifdef VERIFY_HEAP |
4631 void Heap::Verify() { | 4631 void Heap::Verify() { |
4632 CHECK(HasBeenSetUp()); | 4632 CHECK(HasBeenSetUp()); |
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6473 static_cast<int>(object_sizes_last_time_[index])); | 6473 static_cast<int>(object_sizes_last_time_[index])); |
6474 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6474 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6475 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6475 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6476 | 6476 |
6477 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6477 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6478 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6478 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6479 ClearObjectStats(); | 6479 ClearObjectStats(); |
6480 } | 6480 } |
6481 | 6481 |
6482 } } // namespace v8::internal | 6482 } } // namespace v8::internal |
OLD | NEW |