| 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 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 T t, int chars, uint32_t hash_field); | 2035 T t, int chars, uint32_t hash_field); |
| 2036 | 2036 |
| 2037 // Allocates an uninitialized fixed array. It must be filled by the caller. | 2037 // Allocates an uninitialized fixed array. It must be filled by the caller. |
| 2038 MUST_USE_RESULT AllocationResult AllocateUninitializedFixedArray(int length); | 2038 MUST_USE_RESULT AllocationResult AllocateUninitializedFixedArray(int length); |
| 2039 | 2039 |
| 2040 // Make a copy of src and return it. | 2040 // Make a copy of src and return it. |
| 2041 MUST_USE_RESULT inline AllocationResult CopyFixedArray(FixedArray* src); | 2041 MUST_USE_RESULT inline AllocationResult CopyFixedArray(FixedArray* src); |
| 2042 | 2042 |
| 2043 // Make a copy of src, also grow the copy, and return the copy. | 2043 // Make a copy of src, also grow the copy, and return the copy. |
| 2044 MUST_USE_RESULT AllocationResult | 2044 MUST_USE_RESULT AllocationResult |
| 2045 CopyFixedArrayAndGrow(FixedArray* src, int grow_by); | 2045 CopyFixedArrayAndGrow(FixedArray* src, int grow_by, PretenureFlag pretenure); |
| 2046 | 2046 |
| 2047 // Make a copy of src, set the map, and return the copy. | 2047 // Make a copy of src, set the map, and return the copy. |
| 2048 MUST_USE_RESULT AllocationResult | 2048 MUST_USE_RESULT AllocationResult |
| 2049 CopyFixedArrayWithMap(FixedArray* src, Map* map); | 2049 CopyFixedArrayWithMap(FixedArray* src, Map* map); |
| 2050 | 2050 |
| 2051 // Make a copy of src and return it. | 2051 // Make a copy of src and return it. |
| 2052 MUST_USE_RESULT inline AllocationResult CopyFixedDoubleArray( | 2052 MUST_USE_RESULT inline AllocationResult CopyFixedDoubleArray( |
| 2053 FixedDoubleArray* src); | 2053 FixedDoubleArray* src); |
| 2054 | 2054 |
| 2055 // Computes a single character string where the character has code. | 2055 // Computes a single character string where the character has code. |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2843 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2843 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2844 | 2844 |
| 2845 private: | 2845 private: |
| 2846 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2846 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2847 }; | 2847 }; |
| 2848 #endif // DEBUG | 2848 #endif // DEBUG |
| 2849 } | 2849 } |
| 2850 } // namespace v8::internal | 2850 } // namespace v8::internal |
| 2851 | 2851 |
| 2852 #endif // V8_HEAP_HEAP_H_ | 2852 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |