| 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 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 AllocationSite* allocation_site = NULL); | 1956 AllocationSite* allocation_site = NULL); |
| 1957 | 1957 |
| 1958 // Allocates and initializes a new JavaScript object based on a map. | 1958 // Allocates and initializes a new JavaScript object based on a map. |
| 1959 // Passing an allocation site means that a memento will be created that | 1959 // Passing an allocation site means that a memento will be created that |
| 1960 // points to the site. | 1960 // points to the site. |
| 1961 MUST_USE_RESULT AllocationResult | 1961 MUST_USE_RESULT AllocationResult |
| 1962 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, | 1962 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, |
| 1963 AllocationSite* allocation_site = NULL); | 1963 AllocationSite* allocation_site = NULL); |
| 1964 | 1964 |
| 1965 // Allocates a HeapNumber from value. | 1965 // Allocates a HeapNumber from value. |
| 1966 MUST_USE_RESULT AllocationResult | 1966 MUST_USE_RESULT AllocationResult AllocateHeapNumber( |
| 1967 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, | 1967 MutableMode mode = IMMUTABLE, PretenureFlag pretenure = NOT_TENURED); |
| 1968 PretenureFlag pretenure = NOT_TENURED); | |
| 1969 | 1968 |
| 1970 // Allocates SIMD values from the given lane values. | 1969 // Allocates SIMD values from the given lane values. |
| 1971 #define SIMD_ALLOCATE_DECLARATION(TYPE, Type, type, lane_count, lane_type) \ | 1970 #define SIMD_ALLOCATE_DECLARATION(TYPE, Type, type, lane_count, lane_type) \ |
| 1972 AllocationResult Allocate##Type(lane_type lanes[lane_count], \ | 1971 AllocationResult Allocate##Type(lane_type lanes[lane_count], \ |
| 1973 PretenureFlag pretenure = NOT_TENURED); | 1972 PretenureFlag pretenure = NOT_TENURED); |
| 1974 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) | 1973 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION) |
| 1975 #undef SIMD_ALLOCATE_DECLARATION | 1974 #undef SIMD_ALLOCATE_DECLARATION |
| 1976 | 1975 |
| 1977 // Allocates a byte array of the specified length | 1976 // Allocates a byte array of the specified length |
| 1978 MUST_USE_RESULT AllocationResult | 1977 MUST_USE_RESULT AllocationResult |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2696 friend class LargeObjectSpace; | 2695 friend class LargeObjectSpace; |
| 2697 friend class NewSpace; | 2696 friend class NewSpace; |
| 2698 friend class PagedSpace; | 2697 friend class PagedSpace; |
| 2699 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2698 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2700 }; | 2699 }; |
| 2701 | 2700 |
| 2702 } // namespace internal | 2701 } // namespace internal |
| 2703 } // namespace v8 | 2702 } // namespace v8 |
| 2704 | 2703 |
| 2705 #endif // V8_HEAP_HEAP_H_ | 2704 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |