| 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 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1813 } else if (r.IsTagged()) { | 1813 } else if (r.IsTagged()) { |
| 1814 return DefineAsRegister(new (zone()) LConstantT); | 1814 return DefineAsRegister(new (zone()) LConstantT); |
| 1815 } else { | 1815 } else { |
| 1816 UNREACHABLE(); | 1816 UNREACHABLE(); |
| 1817 return NULL; | 1817 return NULL; |
| 1818 } | 1818 } |
| 1819 } | 1819 } |
| 1820 | 1820 |
| 1821 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 1821 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1822 LOperand* context = UseFixed(instr->context(), cp); | 1822 LOperand* context = UseFixed(instr->context(), cp); |
| 1823 LOperand* global_object = | |
| 1824 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
| 1825 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 1823 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
| 1826 LLoadGlobalGeneric* result = | 1824 |
| 1827 new (zone()) LLoadGlobalGeneric(context, global_object, vector); | 1825 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
| 1828 return MarkAsCall(DefineFixed(result, r2), instr); | 1826 return MarkAsCall(DefineFixed(result, r2), instr); |
| 1829 } | 1827 } |
| 1830 | 1828 |
| 1831 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1829 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1832 LOperand* context = UseRegisterAtStart(instr->value()); | 1830 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1833 LInstruction* result = | 1831 LInstruction* result = |
| 1834 DefineAsRegister(new (zone()) LLoadContextSlot(context)); | 1832 DefineAsRegister(new (zone()) LLoadContextSlot(context)); |
| 1835 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 1833 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1836 result = AssignEnvironment(result); | 1834 result = AssignEnvironment(result); |
| 1837 } | 1835 } |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2266 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2264 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2267 LOperand* object = UseRegister(instr->object()); | 2265 LOperand* object = UseRegister(instr->object()); |
| 2268 LOperand* index = UseTempRegister(instr->index()); | 2266 LOperand* index = UseTempRegister(instr->index()); |
| 2269 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2267 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
| 2270 LInstruction* result = DefineSameAsFirst(load); | 2268 LInstruction* result = DefineSameAsFirst(load); |
| 2271 return AssignPointerMap(result); | 2269 return AssignPointerMap(result); |
| 2272 } | 2270 } |
| 2273 | 2271 |
| 2274 } // namespace internal | 2272 } // namespace internal |
| 2275 } // namespace v8 | 2273 } // namespace v8 |
| OLD | NEW |