| 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1992       const ConstantPoolArray::NumberOfEntries& small, | 1992       const ConstantPoolArray::NumberOfEntries& small, | 
| 1993       const ConstantPoolArray::NumberOfEntries& extended); | 1993       const ConstantPoolArray::NumberOfEntries& extended); | 
| 1994 | 1994 | 
| 1995   // Allocates an external array of the specified length and type. | 1995   // Allocates an external array of the specified length and type. | 
| 1996   MUST_USE_RESULT AllocationResult | 1996   MUST_USE_RESULT AllocationResult | 
| 1997       AllocateExternalArray(int length, ExternalArrayType array_type, | 1997       AllocateExternalArray(int length, ExternalArrayType array_type, | 
| 1998                             void* external_pointer, PretenureFlag pretenure); | 1998                             void* external_pointer, PretenureFlag pretenure); | 
| 1999 | 1999 | 
| 2000   // Allocates a fixed typed array of the specified length and type. | 2000   // Allocates a fixed typed array of the specified length and type. | 
| 2001   MUST_USE_RESULT AllocationResult | 2001   MUST_USE_RESULT AllocationResult | 
| 2002       AllocateFixedTypedArray(int length, ExternalArrayType array_type, | 2002   AllocateFixedTypedArray(int length, ExternalArrayType array_type, | 
| 2003                               PretenureFlag pretenure); | 2003                           bool initialize, PretenureFlag pretenure); | 
| 2004 | 2004 | 
| 2005   // Make a copy of src and return it. | 2005   // Make a copy of src and return it. | 
| 2006   MUST_USE_RESULT AllocationResult CopyAndTenureFixedCOWArray(FixedArray* src); | 2006   MUST_USE_RESULT AllocationResult CopyAndTenureFixedCOWArray(FixedArray* src); | 
| 2007 | 2007 | 
| 2008   // Make a copy of src, set the map, and return the copy. | 2008   // Make a copy of src, set the map, and return the copy. | 
| 2009   MUST_USE_RESULT AllocationResult | 2009   MUST_USE_RESULT AllocationResult | 
| 2010       CopyFixedDoubleArrayWithMap(FixedDoubleArray* src, Map* map); | 2010       CopyFixedDoubleArrayWithMap(FixedDoubleArray* src, Map* map); | 
| 2011 | 2011 | 
| 2012   // Allocates a fixed double array with uninitialized values. Returns | 2012   // Allocates a fixed double array with uninitialized values. Returns | 
| 2013   MUST_USE_RESULT AllocationResult AllocateUninitializedFixedDoubleArray( | 2013   MUST_USE_RESULT AllocationResult AllocateUninitializedFixedDoubleArray( | 
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2746   DisallowHeapAllocation no_allocation;  // i.e. no gc allowed. | 2746   DisallowHeapAllocation no_allocation;  // i.e. no gc allowed. | 
| 2747 | 2747 | 
| 2748  private: | 2748  private: | 
| 2749   DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2749   DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 
| 2750 }; | 2750 }; | 
| 2751 #endif  // DEBUG | 2751 #endif  // DEBUG | 
| 2752 } | 2752 } | 
| 2753 }  // namespace v8::internal | 2753 }  // namespace v8::internal | 
| 2754 | 2754 | 
| 2755 #endif  // V8_HEAP_HEAP_H_ | 2755 #endif  // V8_HEAP_HEAP_H_ | 
| OLD | NEW | 
|---|