| 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 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4536 case CODE_SPACE: | 4536 case CODE_SPACE: |
| 4537 return code_space_->Contains(addr); | 4537 return code_space_->Contains(addr); |
| 4538 case MAP_SPACE: | 4538 case MAP_SPACE: |
| 4539 return map_space_->Contains(addr); | 4539 return map_space_->Contains(addr); |
| 4540 case CELL_SPACE: | 4540 case CELL_SPACE: |
| 4541 return cell_space_->Contains(addr); | 4541 return cell_space_->Contains(addr); |
| 4542 case PROPERTY_CELL_SPACE: | 4542 case PROPERTY_CELL_SPACE: |
| 4543 return property_cell_space_->Contains(addr); | 4543 return property_cell_space_->Contains(addr); |
| 4544 case LO_SPACE: | 4544 case LO_SPACE: |
| 4545 return lo_space_->SlowContains(addr); | 4545 return lo_space_->SlowContains(addr); |
| 4546 case INVALID_SPACE: | |
| 4547 break; | |
| 4548 } | 4546 } |
| 4549 UNREACHABLE(); | 4547 UNREACHABLE(); |
| 4550 return false; | 4548 return false; |
| 4551 } | 4549 } |
| 4552 | 4550 |
| 4553 | 4551 |
| 4554 bool Heap::RootIsImmortalImmovable(int root_index) { | 4552 bool Heap::RootIsImmortalImmovable(int root_index) { |
| 4555 switch (root_index) { | 4553 switch (root_index) { |
| 4556 #define CASE(name) \ | 4554 #define CASE(name) \ |
| 4557 case Heap::k##name##RootIndex: \ | 4555 case Heap::k##name##RootIndex: \ |
| (...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6252 static_cast<int>(object_sizes_last_time_[index])); | 6250 static_cast<int>(object_sizes_last_time_[index])); |
| 6253 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6251 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6254 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6252 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6255 | 6253 |
| 6256 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6254 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6257 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6255 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6258 ClearObjectStats(); | 6256 ClearObjectStats(); |
| 6259 } | 6257 } |
| 6260 } | 6258 } |
| 6261 } // namespace v8::internal | 6259 } // namespace v8::internal |
| OLD | NEW |