| 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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 return false; | 953 return false; |
| 954 #endif | 954 #endif |
| 955 #endif | 955 #endif |
| 956 } | 956 } |
| 957 | 957 |
| 958 // Number of "runtime allocations" done so far. | 958 // Number of "runtime allocations" done so far. |
| 959 uint32_t allocations_count() { return allocations_count_; } | 959 uint32_t allocations_count() { return allocations_count_; } |
| 960 | 960 |
| 961 // Returns deterministic "time" value in ms. Works only with | 961 // Returns deterministic "time" value in ms. Works only with |
| 962 // FLAG_verify_predictable. | 962 // FLAG_verify_predictable. |
| 963 double synthetic_time() { return allocations_count_ / 100.0; } | 963 double synthetic_time() { return allocations_count_ / 2.0; } |
| 964 | 964 |
| 965 // Print short heap statistics. | 965 // Print short heap statistics. |
| 966 void PrintShortHeapStatistics(); | 966 void PrintShortHeapStatistics(); |
| 967 | 967 |
| 968 // Write barrier support for address[offset] = o. | 968 // Write barrier support for address[offset] = o. |
| 969 INLINE(void RecordWrite(Address address, int offset)); | 969 INLINE(void RecordWrite(Address address, int offset)); |
| 970 | 970 |
| 971 // Write barrier support for address[start : start + len[ = o. | 971 // Write barrier support for address[start : start + len[ = o. |
| 972 INLINE(void RecordWrites(Address address, int start, int len)); | 972 INLINE(void RecordWrites(Address address, int start, int len)); |
| 973 | 973 |
| (...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2539 | 2539 |
| 2540 private: | 2540 private: |
| 2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2542 }; | 2542 }; |
| 2543 #endif // DEBUG | 2543 #endif // DEBUG |
| 2544 } | 2544 } |
| 2545 } // namespace v8::internal | 2545 } // namespace v8::internal |
| 2546 | 2546 |
| 2547 #endif // V8_HEAP_HEAP_H_ | 2547 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |