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

Unified Diff: src/code-stubs-hydrogen.cc

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
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 461baaa4e6d71447b186938e8bba55a87ec3f7e7..62a848850d14bbbfd8947fbfe7db5513b9f002ad 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -1213,6 +1213,21 @@ Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() {
return DoGenerateCode(this);
}
+#define SIMD128_VALUE_STUB(TYPE, Type, type, lane_count, lane_type) \
+ template <> \
+ HValue* CodeStubGraphBuilder<Allocate##Type##Stub>::BuildCodeStub() { \
+ HValue* result = \
+ Add<HAllocate>(Add<HConstant>(Simd128Value::kSize), \
Benedikt Meurer 2016/02/18 05:12:26 Not sure that HAllocate get's the alignment correc
+ HType::HeapObject(), NOT_TENURED, SIMD128_VALUE_TYPE); \
+ AddStoreMapConstant(result, isolate()->factory()->type##_map()); \
+ return result; \
+ } \
+ \
+ Handle<Code> Allocate##Type##Stub::GenerateCode() { \
+ return DoGenerateCode(this); \
+ }
+SIMD128_TYPES(SIMD128_VALUE_STUB)
+#undef SIMD128_VALUE_STUB
template <>
HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698