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

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

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
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 30 matching lines...) Expand all
41 V(Oddball, false_value, FalseValue) \ 41 V(Oddball, false_value, FalseValue) \
42 V(String, empty_string, empty_string) \ 42 V(String, empty_string, empty_string) \
43 V(Oddball, uninitialized_value, UninitializedValue) \ 43 V(Oddball, uninitialized_value, UninitializedValue) \
44 V(Map, cell_map, CellMap) \ 44 V(Map, cell_map, CellMap) \
45 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ 45 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
46 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ 46 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
47 V(Map, meta_map, MetaMap) \ 47 V(Map, meta_map, MetaMap) \
48 V(Map, heap_number_map, HeapNumberMap) \ 48 V(Map, heap_number_map, HeapNumberMap) \
49 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ 49 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
50 V(Map, float32x4_map, Float32x4Map) \ 50 V(Map, float32x4_map, Float32x4Map) \
51 V(Map, int32x4_map, Int32x4Map) \
52 V(Map, bool32x4_map, Bool32x4Map) \
53 V(Map, int16x8_map, Int16x8Map) \
54 V(Map, bool16x8_map, Bool16x8Map) \
55 V(Map, int8x16_map, Int8x16Map) \
56 V(Map, bool8x16_map, Bool8x16Map) \
51 V(Map, native_context_map, NativeContextMap) \ 57 V(Map, native_context_map, NativeContextMap) \
52 V(Map, fixed_array_map, FixedArrayMap) \ 58 V(Map, fixed_array_map, FixedArrayMap) \
53 V(Map, code_map, CodeMap) \ 59 V(Map, code_map, CodeMap) \
54 V(Map, scope_info_map, ScopeInfoMap) \ 60 V(Map, scope_info_map, ScopeInfoMap) \
55 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 61 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
56 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 62 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
57 V(Map, weak_cell_map, WeakCellMap) \ 63 V(Map, weak_cell_map, WeakCellMap) \
58 V(Map, one_byte_string_map, OneByteStringMap) \ 64 V(Map, one_byte_string_map, OneByteStringMap) \
59 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \ 65 V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \
60 V(Map, function_context_map, FunctionContextMap) \ 66 V(Map, function_context_map, FunctionContextMap) \
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 V(Arguments_string, "Arguments") \ 213 V(Arguments_string, "Arguments") \
208 V(caller_string, "caller") \ 214 V(caller_string, "caller") \
209 V(boolean_string, "boolean") \ 215 V(boolean_string, "boolean") \
210 V(Boolean_string, "Boolean") \ 216 V(Boolean_string, "Boolean") \
211 V(callee_string, "callee") \ 217 V(callee_string, "callee") \
212 V(constructor_string, "constructor") \ 218 V(constructor_string, "constructor") \
213 V(dot_result_string, ".result") \ 219 V(dot_result_string, ".result") \
214 V(eval_string, "eval") \ 220 V(eval_string, "eval") \
215 V(float32x4_string, "float32x4") \ 221 V(float32x4_string, "float32x4") \
216 V(Float32x4_string, "Float32x4") \ 222 V(Float32x4_string, "Float32x4") \
223 V(int32x4_string, "int32x4") \
224 V(Int32x4_string, "Int32x4") \
225 V(bool32x4_string, "bool32x4") \
226 V(Bool32x4_string, "Bool32x4") \
227 V(int16x8_string, "int16x8") \
228 V(Int16x8_string, "Int16x8") \
229 V(bool16x8_string, "bool16x8") \
230 V(Bool16x8_string, "Bool16x8") \
231 V(int8x16_string, "int8x16") \
232 V(Int8x16_string, "Int8x16") \
233 V(bool8x16_string, "bool8x16") \
234 V(Bool8x16_string, "Bool8x16") \
217 V(function_string, "function") \ 235 V(function_string, "function") \
218 V(Function_string, "Function") \ 236 V(Function_string, "Function") \
219 V(length_string, "length") \ 237 V(length_string, "length") \
220 V(name_string, "name") \ 238 V(name_string, "name") \
221 V(null_string, "null") \ 239 V(null_string, "null") \
222 V(number_string, "number") \ 240 V(number_string, "number") \
223 V(Number_string, "Number") \ 241 V(Number_string, "Number") \
224 V(nan_string, "NaN") \ 242 V(nan_string, "NaN") \
225 V(source_string, "source") \ 243 V(source_string, "source") \
226 V(source_url_string, "source_url") \ 244 V(source_url_string, "source_url") \
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 V(TrueValue) \ 350 V(TrueValue) \
333 V(FalseValue) \ 351 V(FalseValue) \
334 V(UninitializedValue) \ 352 V(UninitializedValue) \
335 V(CellMap) \ 353 V(CellMap) \
336 V(GlobalPropertyCellMap) \ 354 V(GlobalPropertyCellMap) \
337 V(SharedFunctionInfoMap) \ 355 V(SharedFunctionInfoMap) \
338 V(MetaMap) \ 356 V(MetaMap) \
339 V(HeapNumberMap) \ 357 V(HeapNumberMap) \
340 V(MutableHeapNumberMap) \ 358 V(MutableHeapNumberMap) \
341 V(Float32x4Map) \ 359 V(Float32x4Map) \
360 V(Int32x4Map) \
361 V(Bool32x4Map) \
362 V(Int16x8Map) \
363 V(Bool16x8Map) \
364 V(Int8x16Map) \
365 V(Bool8x16Map) \
342 V(NativeContextMap) \ 366 V(NativeContextMap) \
343 V(FixedArrayMap) \ 367 V(FixedArrayMap) \
344 V(CodeMap) \ 368 V(CodeMap) \
345 V(ScopeInfoMap) \ 369 V(ScopeInfoMap) \
346 V(FixedCOWArrayMap) \ 370 V(FixedCOWArrayMap) \
347 V(FixedDoubleArrayMap) \ 371 V(FixedDoubleArrayMap) \
348 V(WeakCellMap) \ 372 V(WeakCellMap) \
349 V(NoInterceptorResultSentinel) \ 373 V(NoInterceptorResultSentinel) \
350 V(HashTableMap) \ 374 V(HashTableMap) \
351 V(OrderedHashTableMap) \ 375 V(OrderedHashTableMap) \
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 // points to the site. 1664 // points to the site.
1641 MUST_USE_RESULT AllocationResult 1665 MUST_USE_RESULT AllocationResult
1642 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, 1666 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED,
1643 AllocationSite* allocation_site = NULL); 1667 AllocationSite* allocation_site = NULL);
1644 1668
1645 // Allocates a HeapNumber from value. 1669 // Allocates a HeapNumber from value.
1646 MUST_USE_RESULT AllocationResult 1670 MUST_USE_RESULT AllocationResult
1647 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, 1671 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE,
1648 PretenureFlag pretenure = NOT_TENURED); 1672 PretenureFlag pretenure = NOT_TENURED);
1649 1673
1650 // Allocates a Float32x4 from the given lane values. 1674 // Allocates a SIMD values from the given lane values.
1651 MUST_USE_RESULT AllocationResult 1675 MUST_USE_RESULT AllocationResult
1652 AllocateFloat32x4(float w, float x, float y, float z, 1676 AllocateFloat32x4(float lanes[4], PretenureFlag pretenure = NOT_TENURED);
1653 PretenureFlag pretenure = NOT_TENURED); 1677 MUST_USE_RESULT AllocationResult
1678 AllocateInt32x4(int32_t lanes[4], PretenureFlag pretenure = NOT_TENURED);
1679 MUST_USE_RESULT AllocationResult
1680 AllocateBool32x4(bool lanes[4], PretenureFlag pretenure = NOT_TENURED);
1681 MUST_USE_RESULT AllocationResult
1682 AllocateInt16x8(int16_t lanes[8], PretenureFlag pretenure = NOT_TENURED);
1683 MUST_USE_RESULT AllocationResult
1684 AllocateBool16x8(bool lanes[8], PretenureFlag pretenure = NOT_TENURED);
1685 MUST_USE_RESULT AllocationResult
1686 AllocateInt8x16(int8_t lanes[16], PretenureFlag pretenure = NOT_TENURED);
1687 MUST_USE_RESULT AllocationResult
1688 AllocateBool8x16(bool lanes[16], PretenureFlag pretenure = NOT_TENURED);
1654 1689
1655 // Allocates a byte array of the specified length 1690 // Allocates a byte array of the specified length
1656 MUST_USE_RESULT AllocationResult 1691 MUST_USE_RESULT AllocationResult
1657 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED); 1692 AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);
1658 1693
1659 // Allocates a bytecode array with given contents. 1694 // Allocates a bytecode array with given contents.
1660 MUST_USE_RESULT AllocationResult 1695 MUST_USE_RESULT AllocationResult
1661 AllocateBytecodeArray(int length, const byte* raw_bytecodes, 1696 AllocateBytecodeArray(int length, const byte* raw_bytecodes,
1662 int frame_size); 1697 int frame_size);
1663 1698
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2896 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2862 2897
2863 private: 2898 private:
2864 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2899 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2865 }; 2900 };
2866 #endif // DEBUG 2901 #endif // DEBUG
2867 } 2902 }
2868 } // namespace v8::internal 2903 } // namespace v8::internal
2869 2904
2870 #endif // V8_HEAP_HEAP_H_ 2905 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698