| 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 1978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 PretenureFlag pretenure = NOT_TENURED); | 1989 PretenureFlag pretenure = NOT_TENURED); |
| 1990 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) | 1990 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) |
| 1991 #undef SIMD_ALLOCATE_DECLARATION | 1991 #undef SIMD_ALLOCATE_DECLARATION |
| 1992 | 1992 |
| 1993 // Allocates a byte array of the specified length | 1993 // Allocates a byte array of the specified length |
| 1994 MUST_USE_RESULT AllocationResult | 1994 MUST_USE_RESULT AllocationResult |
| 1995 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); | 1995 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); |
| 1996 | 1996 |
| 1997 // Allocates a bytecode array with given contents. | 1997 // Allocates a bytecode array with given contents. |
| 1998 MUST_USE_RESULT AllocationResult | 1998 MUST_USE_RESULT AllocationResult |
| 1999 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size); | 1999 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, |
| 2000 int parameter_count); |
| 2000 | 2001 |
| 2001 // Copy the code and scope info part of the code object, but insert | 2002 // Copy the code and scope info part of the code object, but insert |
| 2002 // the provided data as the relocation information. | 2003 // the provided data as the relocation information. |
| 2003 MUST_USE_RESULT AllocationResult CopyCode(Code* code, | 2004 MUST_USE_RESULT AllocationResult CopyCode(Code* code, |
| 2004 Vector<byte> reloc_info); | 2005 Vector<byte> reloc_info); |
| 2005 | 2006 |
| 2006 MUST_USE_RESULT AllocationResult CopyCode(Code* code); | 2007 MUST_USE_RESULT AllocationResult CopyCode(Code* code); |
| 2007 | 2008 |
| 2008 // Allocates a fixed array initialized with undefined values | 2009 // Allocates a fixed array initialized with undefined values |
| 2009 MUST_USE_RESULT AllocationResult | 2010 MUST_USE_RESULT AllocationResult |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2786 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2787 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2787 | 2788 |
| 2788 private: | 2789 private: |
| 2789 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2790 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2790 }; | 2791 }; |
| 2791 #endif // DEBUG | 2792 #endif // DEBUG |
| 2792 } | 2793 } |
| 2793 } // namespace v8::internal | 2794 } // namespace v8::internal |
| 2794 | 2795 |
| 2795 #endif // V8_HEAP_HEAP_H_ | 2796 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |