Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 57f537effd1970701ad81ea5a29c8973c484c1ad..2c3d687786fe6d2b53c1ecbbe6baf3ce9c3add20 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -354,20 +354,12 @@ class Factory final { |
Handle<HeapNumber> NewHeapNumber(double value, |
MutableMode mode = IMMUTABLE, |
PretenureFlag pretenure = NOT_TENURED); |
- Handle<Float32x4> NewFloat32x4(float lanes[4], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Int32x4> NewInt32x4(int32_t lanes[4], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Bool32x4> NewBool32x4(bool lanes[4], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Int16x8> NewInt16x8(int16_t lanes[8], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Bool16x8> NewBool16x8(bool lanes[8], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Int8x16> NewInt8x16(int8_t lanes[16], |
- PretenureFlag pretenure = NOT_TENURED); |
- Handle<Bool8x16> NewBool8x16(bool lanes[16], |
- PretenureFlag pretenure = NOT_TENURED); |
+ |
+#define SIMD128_NEW_DECL(TYPE, Type, type, lane_count, lane_type) \ |
+ Handle<Type> New##Type(lane_type lanes[lane_count], \ |
+ PretenureFlag pretenure = NOT_TENURED); |
+ SIMD128_TYPES(SIMD128_NEW_DECL) |
+#undef SIMD128_NEW_DECL |
// These objects are used by the api to create env-independent data |
// structures in the heap. |