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

Unified Diff: src/code-stubs.h

Issue 1706053002: Add Simd128Value code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All types on all platforms. Created 4 years, 10 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/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 039b2e28f0cfd7b5901b4f5fe48da655de76bcb7..7d30858301ceee341bcea69869c16864402304ae 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -61,6 +61,16 @@ namespace internal {
/* HydrogenCodeStubs */ \
V(AllocateHeapNumber) \
V(AllocateMutableHeapNumber) \
+ V(AllocateFloat32x4) \
+ V(AllocateInt32x4) \
+ V(AllocateUint32x4) \
+ V(AllocateBool32x4) \
+ V(AllocateInt16x8) \
+ V(AllocateUint16x8) \
+ V(AllocateBool16x8) \
+ V(AllocateInt8x16) \
+ V(AllocateUint8x16) \
+ V(AllocateBool8x16) \
V(AllocateInNewSpace) \
V(ArrayNArgumentsConstructor) \
V(ArrayNoArgumentConstructor) \
@@ -2511,6 +2521,18 @@ class AllocateMutableHeapNumberStub final : public HydrogenCodeStub {
DEFINE_HYDROGEN_CODE_STUB(AllocateMutableHeapNumber, HydrogenCodeStub);
};
+#define SIMD128_VALUE_STUB(TYPE, Type, type, lane_count, lane_type) \
+ class Allocate##Type##Stub final : public HydrogenCodeStub { \
+ public: \
+ explicit Allocate##Type##Stub(Isolate* isolate) \
+ : HydrogenCodeStub(isolate) {} \
+ \
+ private: \
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Allocate##Type); \
+ DEFINE_HYDROGEN_CODE_STUB(Allocate##Type, HydrogenCodeStub); \
+ };
+SIMD128_TYPES(SIMD128_VALUE_STUB)
+#undef SIMD128_VALUE_STUB
class AllocateInNewSpaceStub final : public HydrogenCodeStub {
public:
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | src/code-stubs-hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698