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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 PretenureFlag pretenure = NOT_TENURED); | 1958 PretenureFlag pretenure = NOT_TENURED); |
1959 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) | 1959 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) |
1960 #undef SIMD_ALLOCATE_DECLARATION | 1960 #undef SIMD_ALLOCATE_DECLARATION |
1961 | 1961 |
1962 // Allocates a byte array of the specified length | 1962 // Allocates a byte array of the specified length |
1963 MUST_USE_RESULT AllocationResult | 1963 MUST_USE_RESULT AllocationResult |
1964 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1964 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); |
1965 | 1965 |
1966 // Allocates a bytecode array with given contents. | 1966 // Allocates a bytecode array with given contents. |
1967 MUST_USE_RESULT AllocationResult | 1967 MUST_USE_RESULT AllocationResult |
1968 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size); | 1968 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, |
| 1969 int parameter_count); |
1969 | 1970 |
1970 // Copy the code and scope info part of the code object, but insert | 1971 // Copy the code and scope info part of the code object, but insert |
1971 // the provided data as the relocation information. | 1972 // the provided data as the relocation information. |
1972 MUST_USE_RESULT AllocationResult CopyCode(Code* code, | 1973 MUST_USE_RESULT AllocationResult CopyCode(Code* code, |
1973 Vector<byte> reloc_info); | 1974 Vector<byte> reloc_info); |
1974 | 1975 |
1975 MUST_USE_RESULT AllocationResult CopyCode(Code* code); | 1976 MUST_USE_RESULT AllocationResult CopyCode(Code* code); |
1976 | 1977 |
1977 // Allocates a fixed array initialized with undefined values | 1978 // Allocates a fixed array initialized with undefined values |
1978 MUST_USE_RESULT AllocationResult | 1979 MUST_USE_RESULT AllocationResult |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2752 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2753 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2753 | 2754 |
2754 private: | 2755 private: |
2755 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2756 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2756 }; | 2757 }; |
2757 #endif // DEBUG | 2758 #endif // DEBUG |
2758 } | 2759 } |
2759 } // namespace v8::internal | 2760 } // namespace v8::internal |
2760 | 2761 |
2761 #endif // V8_HEAP_HEAP_H_ | 2762 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |