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 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 MUST_USE_RESULT AllocationResult | 1664 MUST_USE_RESULT AllocationResult |
1665 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, | 1665 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, |
1666 AllocationSite* allocation_site = NULL); | 1666 AllocationSite* allocation_site = NULL); |
1667 | 1667 |
1668 // Allocates a HeapNumber from value. | 1668 // Allocates a HeapNumber from value. |
1669 MUST_USE_RESULT AllocationResult | 1669 MUST_USE_RESULT AllocationResult |
1670 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, | 1670 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, |
1671 PretenureFlag pretenure = NOT_TENURED); | 1671 PretenureFlag pretenure = NOT_TENURED); |
1672 | 1672 |
1673 // Allocates SIMD values from the given lane values. | 1673 // Allocates SIMD values from the given lane values. |
1674 #define SIMD_ALLOCATE_DECLARATION(type, type_name, lane_count, lane_type) \ | 1674 #define SIMD_ALLOCATE_DECLARATION(TYPE, Type, type, lane_count, lane_type) \ |
1675 AllocationResult Allocate##type(lane_type lanes[lane_count], \ | 1675 AllocationResult Allocate##Type(lane_type lanes[lane_count], \ |
1676 PretenureFlag pretenure = NOT_TENURED); | 1676 PretenureFlag pretenure = NOT_TENURED); |
1677 | |
1678 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) | 1677 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) |
| 1678 #undef SIMD_ALLOCATE_DECLARATION |
1679 | 1679 |
1680 // Allocates a byte array of the specified length | 1680 // Allocates a byte array of the specified length |
1681 MUST_USE_RESULT AllocationResult | 1681 MUST_USE_RESULT AllocationResult |
1682 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1682 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); |
1683 | 1683 |
1684 // Allocates a bytecode array with given contents. | 1684 // Allocates a bytecode array with given contents. |
1685 MUST_USE_RESULT AllocationResult | 1685 MUST_USE_RESULT AllocationResult |
1686 AllocateBytecodeArray(int length, const byte* raw_bytecodes, | 1686 AllocateBytecodeArray(int length, const byte* raw_bytecodes, |
1687 int frame_size); | 1687 int frame_size); |
1688 | 1688 |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2780 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2780 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2781 | 2781 |
2782 private: | 2782 private: |
2783 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2783 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2784 }; | 2784 }; |
2785 #endif // DEBUG | 2785 #endif // DEBUG |
2786 } | 2786 } |
2787 } // namespace v8::internal | 2787 } // namespace v8::internal |
2788 | 2788 |
2789 #endif // V8_HEAP_HEAP_H_ | 2789 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |