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

Unified Diff: src/heap/heap.h

Issue 1153373003: Add new Float32x4 type for SIMD.js. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: A few more tests. Created 5 years, 7 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 00874798fc53e04ff79239b1c399dc24da8ab9f5..997b0bc8af4fa541bd88a2cad002366353bcfaca 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -46,6 +46,7 @@ namespace internal {
V(Map, meta_map, MetaMap) \
V(Map, heap_number_map, HeapNumberMap) \
V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
+ V(Map, float32x4_map, Float32x4Map) \
V(Map, native_context_map, NativeContextMap) \
V(Map, fixed_array_map, FixedArrayMap) \
V(Map, code_map, CodeMap) \
@@ -342,6 +343,7 @@ namespace internal {
V(MetaMap) \
V(HeapNumberMap) \
V(MutableHeapNumberMap) \
+ V(Float32x4Map) \
V(NativeContextMap) \
V(FixedArrayMap) \
V(CodeMap) \
@@ -1598,12 +1600,17 @@ class Heap {
bool alloc_props = true,
AllocationSite* allocation_site = NULL);
- // Allocated a HeapNumber from value.
+ // Allocates a HeapNumber from value.
MUST_USE_RESULT AllocationResult
AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE,
PretenureFlag pretenure = NOT_TENURED);
- // Allocate a byte array of the specified length
+ // Allocates a Float32x4 from value.
+ MUST_USE_RESULT AllocationResult
+ AllocateFloat32x4(double w, double x, double y, double z,
titzer 2015/06/03 13:27:15 Float
bbudge 2015/06/03 20:31:48 Done.
+ PretenureFlag pretenure = NOT_TENURED);
+
+ // Allocates a byte array of the specified length
MUST_USE_RESULT AllocationResult
AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);

Powered by Google App Engine
This is Rietveld 408576698