| 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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 | 1827 |
| 1828 // Allocates a byte array of the specified length | 1828 // Allocates a byte array of the specified length |
| 1829 MUST_USE_RESULT AllocationResult | 1829 MUST_USE_RESULT AllocationResult |
| 1830 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1830 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); |
| 1831 | 1831 |
| 1832 // Allocates a bytecode array with given contents. | 1832 // Allocates a bytecode array with given contents. |
| 1833 MUST_USE_RESULT AllocationResult | 1833 MUST_USE_RESULT AllocationResult |
| 1834 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, | 1834 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, |
| 1835 int parameter_count, FixedArray* constant_pool); | 1835 int parameter_count, FixedArray* constant_pool); |
| 1836 | 1836 |
| 1837 // Copy the code and scope info part of the code object, but insert | |
| 1838 // the provided data as the relocation information. | |
| 1839 MUST_USE_RESULT AllocationResult CopyCode(Code* code, | |
| 1840 Vector<byte> reloc_info); | |
| 1841 | |
| 1842 MUST_USE_RESULT AllocationResult CopyCode(Code* code); | 1837 MUST_USE_RESULT AllocationResult CopyCode(Code* code); |
| 1843 | 1838 |
| 1844 MUST_USE_RESULT AllocationResult | 1839 MUST_USE_RESULT AllocationResult |
| 1845 CopyBytecodeArray(BytecodeArray* bytecode_array); | 1840 CopyBytecodeArray(BytecodeArray* bytecode_array); |
| 1846 | 1841 |
| 1847 // Allocates a fixed array initialized with undefined values | 1842 // Allocates a fixed array initialized with undefined values |
| 1848 MUST_USE_RESULT AllocationResult | 1843 MUST_USE_RESULT AllocationResult |
| 1849 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1844 AllocateFixedArray(int length, PretenureFlag pretenure = NOT_TENURED); |
| 1850 | 1845 |
| 1851 // Allocate an uninitialized object. The memory is non-executable if the | 1846 // Allocate an uninitialized object. The memory is non-executable if the |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2670 friend class LargeObjectSpace; | 2665 friend class LargeObjectSpace; |
| 2671 friend class NewSpace; | 2666 friend class NewSpace; |
| 2672 friend class PagedSpace; | 2667 friend class PagedSpace; |
| 2673 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2668 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2674 }; | 2669 }; |
| 2675 | 2670 |
| 2676 } // namespace internal | 2671 } // namespace internal |
| 2677 } // namespace v8 | 2672 } // namespace v8 |
| 2678 | 2673 |
| 2679 #endif // V8_HEAP_HEAP_H_ | 2674 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |