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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 // another filler object is created so the over allocated memory is iterable. | 1435 // another filler object is created so the over allocated memory is iterable. |
1436 MUST_USE_RESULT HeapObject* AlignWithFiller(HeapObject* object, | 1436 MUST_USE_RESULT HeapObject* AlignWithFiller(HeapObject* object, |
1437 int object_size, | 1437 int object_size, |
1438 int allocation_size, | 1438 int allocation_size, |
1439 AllocationAlignment alignment); | 1439 AllocationAlignment alignment); |
1440 | 1440 |
1441 // =========================================================================== | 1441 // =========================================================================== |
1442 // ArrayBuffer tracking. ===================================================== | 1442 // ArrayBuffer tracking. ===================================================== |
1443 // =========================================================================== | 1443 // =========================================================================== |
1444 | 1444 |
| 1445 // TODO(gc): API usability: encapsulate mutation of JSArrayBuffer::is_external |
| 1446 // in the registration/unregistration APIs. Consider dropping the "New" from |
| 1447 // "RegisterNewArrayBuffer" because one can re-register a previously |
| 1448 // unregistered buffer, too, and the name is confusing. |
1445 void RegisterNewArrayBuffer(JSArrayBuffer* buffer); | 1449 void RegisterNewArrayBuffer(JSArrayBuffer* buffer); |
1446 void UnregisterArrayBuffer(JSArrayBuffer* buffer); | 1450 void UnregisterArrayBuffer(JSArrayBuffer* buffer); |
1447 | 1451 |
1448 // =========================================================================== | 1452 // =========================================================================== |
1449 // Allocation site tracking. ================================================= | 1453 // Allocation site tracking. ================================================= |
1450 // =========================================================================== | 1454 // =========================================================================== |
1451 | 1455 |
1452 // Updates the AllocationSite of a given {object}. If the global prenuring | 1456 // Updates the AllocationSite of a given {object}. If the global prenuring |
1453 // storage is passed as {pretenuring_feedback} the memento found count on | 1457 // storage is passed as {pretenuring_feedback} the memento found count on |
1454 // the corresponding allocation site is immediately updated and an entry | 1458 // the corresponding allocation site is immediately updated and an entry |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2640 } | 2644 } |
2641 | 2645 |
2642 private: | 2646 private: |
2643 Heap* heap_; | 2647 Heap* heap_; |
2644 }; | 2648 }; |
2645 | 2649 |
2646 } // namespace internal | 2650 } // namespace internal |
2647 } // namespace v8 | 2651 } // namespace v8 |
2648 | 2652 |
2649 #endif // V8_HEAP_HEAP_H_ | 2653 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |