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_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1866 uint16_t code); | 1866 uint16_t code); |
1867 | 1867 |
1868 // Allocate a symbol in old space. | 1868 // Allocate a symbol in old space. |
1869 MUST_USE_RESULT AllocationResult AllocateSymbol(); | 1869 MUST_USE_RESULT AllocationResult AllocateSymbol(); |
1870 | 1870 |
1871 // Make a copy of src, set the map, and return the copy. | 1871 // Make a copy of src, set the map, and return the copy. |
1872 MUST_USE_RESULT AllocationResult CopyConstantPoolArrayWithMap( | 1872 MUST_USE_RESULT AllocationResult CopyConstantPoolArrayWithMap( |
1873 ConstantPoolArray* src, Map* map); | 1873 ConstantPoolArray* src, Map* map); |
1874 | 1874 |
1875 MUST_USE_RESULT AllocationResult AllocateConstantPoolArray( | 1875 MUST_USE_RESULT AllocationResult AllocateConstantPoolArray( |
1876 int number_of_int64_entries, | 1876 const ConstantPoolArray::NumberOfEntries& small); |
1877 int number_of_code_ptr_entries, | 1877 |
1878 int number_of_heap_ptr_entries, | 1878 MUST_USE_RESULT AllocationResult AllocateExtendedConstantPoolArray( |
1879 int number_of_int32_entries); | 1879 const ConstantPoolArray::NumberOfEntries& small, |
| 1880 const ConstantPoolArray::NumberOfEntries& extended); |
1880 | 1881 |
1881 // Allocates an external array of the specified length and type. | 1882 // Allocates an external array of the specified length and type. |
1882 MUST_USE_RESULT AllocationResult AllocateExternalArray( | 1883 MUST_USE_RESULT AllocationResult AllocateExternalArray( |
1883 int length, | 1884 int length, |
1884 ExternalArrayType array_type, | 1885 ExternalArrayType array_type, |
1885 void* external_pointer, | 1886 void* external_pointer, |
1886 PretenureFlag pretenure); | 1887 PretenureFlag pretenure); |
1887 | 1888 |
1888 // Allocates a fixed typed array of the specified length and type. | 1889 // Allocates a fixed typed array of the specified length and type. |
1889 MUST_USE_RESULT AllocationResult AllocateFixedTypedArray( | 1890 MUST_USE_RESULT AllocationResult AllocateFixedTypedArray( |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2776 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2776 | 2777 |
2777 private: | 2778 private: |
2778 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2779 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2779 }; | 2780 }; |
2780 #endif // DEBUG | 2781 #endif // DEBUG |
2781 | 2782 |
2782 } } // namespace v8::internal | 2783 } } // namespace v8::internal |
2783 | 2784 |
2784 #endif // V8_HEAP_H_ | 2785 #endif // V8_HEAP_H_ |
OLD | NEW |