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

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: Fix int type mismatches. 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
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 8574d55993d9dc523dc233170b3c667ebefe7c26..1d2afb96fe1f6f6dbbe5dfed0ed9b540aee96747 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) \
@@ -344,6 +345,7 @@ namespace internal {
V(MetaMap) \
V(HeapNumberMap) \
V(MutableHeapNumberMap) \
+ V(Float32x4Map) \
V(NativeContextMap) \
V(FixedArrayMap) \
V(CodeMap) \
@@ -1602,12 +1604,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 the given lane values.
+ MUST_USE_RESULT AllocationResult
+ AllocateFloat32x4(float w, float x, float y, float z,
+ PretenureFlag pretenure = NOT_TENURED);
+
+ // Allocates a byte array of the specified length
MUST_USE_RESULT AllocationResult
AllocateByteArray(int length, PretenureFlag pretenure = NOT_TENURED);
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698