Chromium Code Reviews| 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() { |