| 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 #ifndef V8_HEAP_INL_H_ | 5 #ifndef V8_HEAP_INL_H_ |
| 6 #define V8_HEAP_INL_H_ | 6 #define V8_HEAP_INL_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "heap.h" | 10 #include "heap.h" |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 (obj->IsExternalString() && ExternalString::cast(obj)->is_short())); | 394 (obj->IsExternalString() && ExternalString::cast(obj)->is_short())); |
| 395 case OLD_DATA_SPACE: | 395 case OLD_DATA_SPACE: |
| 396 return dst == src && dst == TargetSpaceId(type); | 396 return dst == src && dst == TargetSpaceId(type); |
| 397 case CODE_SPACE: | 397 case CODE_SPACE: |
| 398 return dst == src && type == CODE_TYPE; | 398 return dst == src && type == CODE_TYPE; |
| 399 case MAP_SPACE: | 399 case MAP_SPACE: |
| 400 case CELL_SPACE: | 400 case CELL_SPACE: |
| 401 case PROPERTY_CELL_SPACE: | 401 case PROPERTY_CELL_SPACE: |
| 402 case LO_SPACE: | 402 case LO_SPACE: |
| 403 return false; | 403 return false; |
| 404 default: | 404 case INVALID_SPACE: |
| 405 break; | 405 break; |
| 406 } | 406 } |
| 407 UNREACHABLE(); | 407 UNREACHABLE(); |
| 408 return false; | 408 return false; |
| 409 } | 409 } |
| 410 | 410 |
| 411 | 411 |
| 412 void Heap::CopyBlock(Address dst, Address src, int byte_size) { | 412 void Heap::CopyBlock(Address dst, Address src, int byte_size) { |
| 413 CopyWords(reinterpret_cast<Object**>(dst), | 413 CopyWords(reinterpret_cast<Object**>(dst), |
| 414 reinterpret_cast<Object**>(src), | 414 reinterpret_cast<Object**>(src), |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 | 769 |
| 770 double GCTracer::SizeOfHeapObjects() { | 770 double GCTracer::SizeOfHeapObjects() { |
| 771 return (static_cast<double>(heap_->SizeOfObjects())) / MB; | 771 return (static_cast<double>(heap_->SizeOfObjects())) / MB; |
| 772 } | 772 } |
| 773 | 773 |
| 774 | 774 |
| 775 } } // namespace v8::internal | 775 } } // namespace v8::internal |
| 776 | 776 |
| 777 #endif // V8_HEAP_INL_H_ | 777 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |