Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |