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