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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include "src/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/field-index.h" 10 #include "src/field-index.h"
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 NOT_TENURED, MUTABLE_HEAP_NUMBER_TYPE); 1206 NOT_TENURED, MUTABLE_HEAP_NUMBER_TYPE);
1207 AddStoreMapConstant(result, isolate()->factory()->mutable_heap_number_map()); 1207 AddStoreMapConstant(result, isolate()->factory()->mutable_heap_number_map());
1208 return result; 1208 return result;
1209 } 1209 }
1210 1210
1211 1211
1212 Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() { 1212 Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() {
1213 return DoGenerateCode(this); 1213 return DoGenerateCode(this);
1214 } 1214 }
1215 1215
1216 #define SIMD128_VALUE_STUB(TYPE, Type, type, lane_count, lane_type) \
1217 template <> \
1218 HValue* CodeStubGraphBuilder<Allocate##Type##Stub>::BuildCodeStub() { \
1219 HValue* result = \
1220 Add<HAllocate>(Add<HConstant>(Simd128Value::kSize), \
Benedikt Meurer 2016/02/18 05:12:26 Not sure that HAllocate get's the alignment correc
1221 HType::HeapObject(), NOT_TENURED, SIMD128_VALUE_TYPE); \
1222 AddStoreMapConstant(result, isolate()->factory()->type##_map()); \
1223 return result; \
1224 } \
1225 \
1226 Handle<Code> Allocate##Type##Stub::GenerateCode() { \
1227 return DoGenerateCode(this); \
1228 }
1229 SIMD128_TYPES(SIMD128_VALUE_STUB)
1230 #undef SIMD128_VALUE_STUB
1216 1231
1217 template <> 1232 template <>
1218 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() { 1233 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() {
1219 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED, 1234 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED,
1220 JS_OBJECT_TYPE); 1235 JS_OBJECT_TYPE);
1221 return result; 1236 return result;
1222 } 1237 }
1223 1238
1224 1239
1225 Handle<Code> AllocateInNewSpaceStub::GenerateCode() { 1240 Handle<Code> AllocateInNewSpaceStub::GenerateCode() {
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 return Pop(); 2439 return Pop();
2425 } 2440 }
2426 2441
2427 2442
2428 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2443 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2429 return DoGenerateCode(this); 2444 return DoGenerateCode(this);
2430 } 2445 }
2431 2446
2432 } // namespace internal 2447 } // namespace internal
2433 } // namespace v8 2448 } // namespace v8
OLDNEW
« 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