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 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 // This event is triggered after successful allocation of a new object made | 1509 // This event is triggered after successful allocation of a new object made |
1510 // by runtime. Allocations of target space for object evacuation do not | 1510 // by runtime. Allocations of target space for object evacuation do not |
1511 // trigger the event. In order to track ALL allocations one must turn off | 1511 // trigger the event. In order to track ALL allocations one must turn off |
1512 // FLAG_inline_new and FLAG_use_allocation_folding. | 1512 // FLAG_inline_new and FLAG_use_allocation_folding. |
1513 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); | 1513 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); |
1514 | 1514 |
1515 // This event is triggered after object is moved to a new place. | 1515 // This event is triggered after object is moved to a new place. |
1516 inline void OnMoveEvent(HeapObject* target, HeapObject* source, | 1516 inline void OnMoveEvent(HeapObject* target, HeapObject* source, |
1517 int size_in_bytes); | 1517 int size_in_bytes); |
1518 | 1518 |
| 1519 void MigrateMixedObjectInNewSpaceEpilog(HeapObject* dst); |
| 1520 |
1519 bool deserialization_complete() const { return deserialization_complete_; } | 1521 bool deserialization_complete() const { return deserialization_complete_; } |
1520 | 1522 |
1521 void RegisterNewArrayBuffer(void* data, size_t length); | 1523 void RegisterNewArrayBuffer(void* data, size_t length); |
1522 void UnregisterArrayBuffer(void* data); | 1524 void UnregisterArrayBuffer(void* data); |
1523 void RegisterLiveArrayBuffer(void* data); | 1525 void RegisterLiveArrayBuffer(void* data); |
1524 void FreeDeadArrayBuffers(); | 1526 void FreeDeadArrayBuffers(); |
1525 | 1527 |
1526 protected: | 1528 protected: |
1527 // Methods made available to tests. | 1529 // Methods made available to tests. |
1528 | 1530 |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2649 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2651 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2650 | 2652 |
2651 private: | 2653 private: |
2652 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2654 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2653 }; | 2655 }; |
2654 #endif // DEBUG | 2656 #endif // DEBUG |
2655 } | 2657 } |
2656 } // namespace v8::internal | 2658 } // namespace v8::internal |
2657 | 2659 |
2658 #endif // V8_HEAP_HEAP_H_ | 2660 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |