| 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, | 1779 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, |
| 1780 int parameter_count, FixedArray* constant_pool); | 1780 int parameter_count, FixedArray* constant_pool); |
| 1781 | 1781 |
| 1782 // Copy the code and scope info part of the code object, but insert | 1782 // Copy the code and scope info part of the code object, but insert |
| 1783 // the provided data as the relocation information. | 1783 // the provided data as the relocation information. |
| 1784 MUST_USE_RESULT AllocationResult CopyCode(Code* code, | 1784 MUST_USE_RESULT AllocationResult CopyCode(Code* code, |
| 1785 Vector<byte> reloc_info); | 1785 Vector<byte> reloc_info); |
| 1786 | 1786 |
| 1787 MUST_USE_RESULT AllocationResult CopyCode(Code* code); | 1787 MUST_USE_RESULT AllocationResult CopyCode(Code* code); |
| 1788 | 1788 |
| 1789 MUST_USE_RESULT AllocationResult |
| 1790 CopyBytecodeArray(BytecodeArray* bytecode_array); |
| 1791 |
| 1789 // Allocates a fixed array initialized with undefined values | 1792 // Allocates a fixed array initialized with undefined values |
| 1790 MUST_USE_RESULT AllocationResult | 1793 MUST_USE_RESULT AllocationResult |
| 1791 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1794 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED); |
| 1792 | 1795 |
| 1793 // Allocate an uninitialized object. The memory is non-executable if the | 1796 // Allocate an uninitialized object. The memory is non-executable if the |
| 1794 // hardware and OS allow. This is the single choke-point for allocations | 1797 // hardware and OS allow. This is the single choke-point for allocations |
| 1795 // performed by the runtime and should not be bypassed (to extend this to | 1798 // performed by the runtime and should not be bypassed (to extend this to |
| 1796 // inlined allocations, use the Heap::DisableInlineAllocation() support). | 1799 // inlined allocations, use the Heap::DisableInlineAllocation() support). |
| 1797 MUST_USE_RESULT inline AllocationResult AllocateRaw( | 1800 MUST_USE_RESULT inline AllocationResult AllocateRaw( |
| 1798 int size_in_bytes, AllocationSpace space, | 1801 int size_in_bytes, AllocationSpace space, |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2622 friend class LargeObjectSpace; | 2625 friend class LargeObjectSpace; |
| 2623 friend class NewSpace; | 2626 friend class NewSpace; |
| 2624 friend class PagedSpace; | 2627 friend class PagedSpace; |
| 2625 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2626 }; | 2629 }; |
| 2627 | 2630 |
| 2628 } // namespace internal | 2631 } // namespace internal |
| 2629 } // namespace v8 | 2632 } // namespace v8 |
| 2630 | 2633 |
| 2631 #endif // V8_HEAP_HEAP_H_ | 2634 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |