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

Unified Diff: src/factory.h

Issue 1293533003: [simd.js] Macro-ize more SIMD code (1). (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 side-by-side diff with in-line comments
Download patch
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.
« src/code-stubs-hydrogen.cc ('K') | « src/code-stubs-hydrogen.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698