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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 15577ee02390be901caa9e71bd30cfca41fe2889..c50f7d928eb08a88ad39ec6825caf35f517f7a9d 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -48,6 +48,12 @@ namespace internal {
V(Map, heap_number_map, HeapNumberMap) \
V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
V(Map, float32x4_map, Float32x4Map) \
+ V(Map, int32x4_map, Int32x4Map) \
+ V(Map, bool32x4_map, Bool32x4Map) \
+ V(Map, int16x8_map, Int16x8Map) \
+ V(Map, bool16x8_map, Bool16x8Map) \
+ V(Map, int8x16_map, Int8x16Map) \
+ V(Map, bool8x16_map, Bool8x16Map) \
V(Map, native_context_map, NativeContextMap) \
V(Map, fixed_array_map, FixedArrayMap) \
V(Map, code_map, CodeMap) \
@@ -214,6 +220,18 @@ namespace internal {
V(eval_string, "eval") \
V(float32x4_string, "float32x4") \
V(Float32x4_string, "Float32x4") \
+ V(int32x4_string, "int32x4") \
+ V(Int32x4_string, "Int32x4") \
+ V(bool32x4_string, "bool32x4") \
+ V(Bool32x4_string, "Bool32x4") \
+ V(int16x8_string, "int16x8") \
+ V(Int16x8_string, "Int16x8") \
+ V(bool16x8_string, "bool16x8") \
+ V(Bool16x8_string, "Bool16x8") \
+ V(int8x16_string, "int8x16") \
+ V(Int8x16_string, "Int8x16") \
+ V(bool8x16_string, "bool8x16") \
+ V(Bool8x16_string, "Bool8x16") \
V(function_string, "function") \
V(Function_string, "Function") \
V(length_string, "length") \
@@ -339,6 +357,12 @@ namespace internal {
V(HeapNumberMap) \
V(MutableHeapNumberMap) \
V(Float32x4Map) \
+ V(Int32x4Map) \
+ V(Bool32x4Map) \
+ V(Int16x8Map) \
+ V(Bool16x8Map) \
+ V(Int8x16Map) \
+ V(Bool8x16Map) \
V(NativeContextMap) \
V(FixedArrayMap) \
V(CodeMap) \
@@ -1647,10 +1671,21 @@ class Heap {
AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE,
PretenureFlag pretenure = NOT_TENURED);
- // Allocates a Float32x4 from the given lane values.
+ // Allocates a SIMD values from the given lane values.
MUST_USE_RESULT AllocationResult
- AllocateFloat32x4(float w, float x, float y, float z,
- PretenureFlag pretenure = NOT_TENURED);
+ AllocateFloat32x4(float lanes[4], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateInt32x4(int32_t lanes[4], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateBool32x4(bool lanes[4], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateInt16x8(int16_t lanes[8], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateBool16x8(bool lanes[8], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateInt8x16(int8_t lanes[16], PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT AllocationResult
+ AllocateBool8x16(bool lanes[16], PretenureFlag pretenure = NOT_TENURED);
// Allocates a byte array of the specified length
MUST_USE_RESULT AllocationResult

Powered by Google App Engine
This is Rietveld 408576698