Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: src/heap/heap.h

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap-symbols.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 /* Array element maps */ \ 128 /* Array element maps */ \
129 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \ 129 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \
130 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \ 130 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \
131 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \ 131 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \
132 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \ 132 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \
133 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \ 133 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \
134 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \ 134 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \
135 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \ 135 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \
136 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \ 136 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \
137 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \ 137 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \
138 V(Map, float32x4_map, Float32x4Map) \
139 V(Map, int32x4_map, Int32x4Map) \
140 V(Map, uint32x4_map, Uint32x4Map) \
141 V(Map, bool32x4_map, Bool32x4Map) \
142 V(Map, int16x8_map, Int16x8Map) \
143 V(Map, uint16x8_map, Uint16x8Map) \
144 V(Map, bool16x8_map, Bool16x8Map) \
145 V(Map, int8x16_map, Int8x16Map) \
146 V(Map, uint8x16_map, Uint8x16Map) \
147 V(Map, bool8x16_map, Bool8x16Map) \
138 /* Canonical empty values */ \ 148 /* Canonical empty values */ \
139 V(ByteArray, empty_byte_array, EmptyByteArray) \ 149 V(ByteArray, empty_byte_array, EmptyByteArray) \
140 V(FixedTypedArrayBase, empty_fixed_uint8_array, EmptyFixedUint8Array) \ 150 V(FixedTypedArrayBase, empty_fixed_uint8_array, EmptyFixedUint8Array) \
141 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ 151 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \
142 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ 152 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \
143 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ 153 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \
144 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ 154 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \
145 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ 155 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \
146 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ 156 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \
147 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ 157 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 V(NullValue) \ 272 V(NullValue) \
263 V(TrueValue) \ 273 V(TrueValue) \
264 V(FalseValue) \ 274 V(FalseValue) \
265 V(UninitializedValue) \ 275 V(UninitializedValue) \
266 V(CellMap) \ 276 V(CellMap) \
267 V(GlobalPropertyCellMap) \ 277 V(GlobalPropertyCellMap) \
268 V(SharedFunctionInfoMap) \ 278 V(SharedFunctionInfoMap) \
269 V(MetaMap) \ 279 V(MetaMap) \
270 V(HeapNumberMap) \ 280 V(HeapNumberMap) \
271 V(MutableHeapNumberMap) \ 281 V(MutableHeapNumberMap) \
282 V(Float32x4Map) \
283 V(Int32x4Map) \
284 V(Uint32x4Map) \
285 V(Bool32x4Map) \
286 V(Int16x8Map) \
287 V(Uint16x8Map) \
288 V(Bool16x8Map) \
289 V(Int8x16Map) \
290 V(Uint8x16Map) \
291 V(Bool8x16Map) \
272 V(NativeContextMap) \ 292 V(NativeContextMap) \
273 V(FixedArrayMap) \ 293 V(FixedArrayMap) \
274 V(CodeMap) \ 294 V(CodeMap) \
275 V(ScopeInfoMap) \ 295 V(ScopeInfoMap) \
276 V(ModuleInfoMap) \ 296 V(ModuleInfoMap) \
277 V(FixedCOWArrayMap) \ 297 V(FixedCOWArrayMap) \
278 V(FixedDoubleArrayMap) \ 298 V(FixedDoubleArrayMap) \
279 V(WeakCellMap) \ 299 V(WeakCellMap) \
280 V(TransitionArrayMap) \ 300 V(TransitionArrayMap) \
281 V(NoInterceptorResultSentinel) \ 301 V(NoInterceptorResultSentinel) \
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 // Passing an allocation site means that a memento will be created that 1947 // Passing an allocation site means that a memento will be created that
1928 // points to the site. 1948 // points to the site.
1929 MUST_USE_RESULT AllocationResult 1949 MUST_USE_RESULT AllocationResult
1930 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, 1950 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED,
1931 AllocationSite* allocation_site = NULL); 1951 AllocationSite* allocation_site = NULL);
1932 1952
1933 // Allocates a HeapNumber from value. 1953 // Allocates a HeapNumber from value.
1934 MUST_USE_RESULT AllocationResult AllocateHeapNumber( 1954 MUST_USE_RESULT AllocationResult AllocateHeapNumber(
1935 MutableMode mode = IMMUTABLE, PretenureFlag pretenure = NOT_TENURED); 1955 MutableMode mode = IMMUTABLE, PretenureFlag pretenure = NOT_TENURED);
1936 1956
1957 // Allocates SIMD values from the given lane values.
1958 #define SIMD_ALLOCATE_DECLARATION(TYPE, Type, type, lane_count, lane_type) \
1959 AllocationResult Allocate##Type(lane_type lanes[lane_count], \
1960 PretenureFlag pretenure = NOT_TENURED);
1961 SIMD128_TYPES(SIMD_ALLOCATE_DECLARATION)
1962 #undef SIMD_ALLOCATE_DECLARATION
1963
1937 // Allocates a byte array of the specified length 1964 // Allocates a byte array of the specified length
1938 MUST_USE_RESULT AllocationResult 1965 MUST_USE_RESULT AllocationResult
1939 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); 1966 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);
1940 1967
1941 // Allocates a bytecode array with given contents. 1968 // Allocates a bytecode array with given contents.
1942 MUST_USE_RESULT AllocationResult 1969 MUST_USE_RESULT AllocationResult
1943 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size, 1970 AllocateBytecodeArray(int length, const byte* raw_bytecodes, int frame_size,
1944 int parameter_count, FixedArray* constant_pool); 1971 int parameter_count, FixedArray* constant_pool);
1945 1972
1946 MUST_USE_RESULT AllocationResult CopyCode(Code* code); 1973 MUST_USE_RESULT AllocationResult CopyCode(Code* code);
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 friend class LargeObjectSpace; 2667 friend class LargeObjectSpace;
2641 friend class NewSpace; 2668 friend class NewSpace;
2642 friend class PagedSpace; 2669 friend class PagedSpace;
2643 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2670 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2644 }; 2671 };
2645 2672
2646 } // namespace internal 2673 } // namespace internal
2647 } // namespace v8 2674 } // namespace v8
2648 2675
2649 #endif // V8_HEAP_HEAP_H_ 2676 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap-symbols.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698