OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/crankshaft/s390/lithium-s390.h" | 5 #include "src/crankshaft/s390/lithium-s390.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 return AssignEnvironment(DefineAsRegister(result)); | 1786 return AssignEnvironment(DefineAsRegister(result)); |
1787 } | 1787 } |
1788 } | 1788 } |
1789 | 1789 |
1790 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | 1790 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
1791 HValue* value = instr->value(); | 1791 HValue* value = instr->value(); |
1792 DCHECK(value->representation().IsDouble()); | 1792 DCHECK(value->representation().IsDouble()); |
1793 return DefineAsRegister(new (zone()) LDoubleBits(UseRegister(value))); | 1793 return DefineAsRegister(new (zone()) LDoubleBits(UseRegister(value))); |
1794 } | 1794 } |
1795 | 1795 |
1796 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { | |
1797 LOperand* lo = UseRegister(instr->lo()); | |
1798 LOperand* hi = UseRegister(instr->hi()); | |
1799 return DefineAsRegister(new (zone()) LConstructDouble(hi, lo)); | |
1800 } | |
1801 | |
1802 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1796 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1803 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), cp) : NULL; | 1797 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), cp) : NULL; |
1804 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1798 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1805 return new (zone()) | 1799 return new (zone()) |
1806 LReturn(UseFixed(instr->value(), r2), context, parameter_count); | 1800 LReturn(UseFixed(instr->value(), r2), context, parameter_count); |
1807 } | 1801 } |
1808 | 1802 |
1809 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1803 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
1810 Representation r = instr->representation(); | 1804 Representation r = instr->representation(); |
1811 if (r.IsSmi()) { | 1805 if (r.IsSmi()) { |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2266 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2273 LOperand* object = UseRegister(instr->object()); | 2267 LOperand* object = UseRegister(instr->object()); |
2274 LOperand* index = UseTempRegister(instr->index()); | 2268 LOperand* index = UseTempRegister(instr->index()); |
2275 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2269 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
2276 LInstruction* result = DefineSameAsFirst(load); | 2270 LInstruction* result = DefineSameAsFirst(load); |
2277 return AssignPointerMap(result); | 2271 return AssignPointerMap(result); |
2278 } | 2272 } |
2279 | 2273 |
2280 } // namespace internal | 2274 } // namespace internal |
2281 } // namespace v8 | 2275 } // namespace v8 |
OLD | NEW |