| 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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 } else if (r.IsExternal()) { | 1797 } else if (r.IsExternal()) { |
| 1798 return DefineAsRegister(new (zone()) LConstantE); | 1798 return DefineAsRegister(new (zone()) LConstantE); |
| 1799 } else if (r.IsTagged()) { | 1799 } else if (r.IsTagged()) { |
| 1800 return DefineAsRegister(new (zone()) LConstantT); | 1800 return DefineAsRegister(new (zone()) LConstantT); |
| 1801 } else { | 1801 } else { |
| 1802 UNREACHABLE(); | 1802 UNREACHABLE(); |
| 1803 return NULL; | 1803 return NULL; |
| 1804 } | 1804 } |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | |
| 1808 LOperand* context = UseFixed(instr->context(), cp); | |
| 1809 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
| 1810 | |
| 1811 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); | |
| 1812 return MarkAsCall(DefineFixed(result, r2), instr); | |
| 1813 } | |
| 1814 | |
| 1815 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1807 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1816 LOperand* context = UseRegisterAtStart(instr->value()); | 1808 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1817 LInstruction* result = | 1809 LInstruction* result = |
| 1818 DefineAsRegister(new (zone()) LLoadContextSlot(context)); | 1810 DefineAsRegister(new (zone()) LLoadContextSlot(context)); |
| 1819 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 1811 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1820 result = AssignEnvironment(result); | 1812 result = AssignEnvironment(result); |
| 1821 } | 1813 } |
| 1822 return result; | 1814 return result; |
| 1823 } | 1815 } |
| 1824 | 1816 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2220 LOperand* object = UseRegister(instr->object()); | 2212 LOperand* object = UseRegister(instr->object()); |
| 2221 LOperand* index = UseTempRegister(instr->index()); | 2213 LOperand* index = UseTempRegister(instr->index()); |
| 2222 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2214 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
| 2223 LInstruction* result = DefineSameAsFirst(load); | 2215 LInstruction* result = DefineSameAsFirst(load); |
| 2224 return AssignPointerMap(result); | 2216 return AssignPointerMap(result); |
| 2225 } | 2217 } |
| 2226 | 2218 |
| 2227 } // namespace internal | 2219 } // namespace internal |
| 2228 } // namespace v8 | 2220 } // namespace v8 |
| OLD | NEW |