| 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 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1759 } else if (r.IsTagged()) { | 1759 } else if (r.IsTagged()) { |
| 1760 return DefineAsRegister(new (zone()) LConstantT); | 1760 return DefineAsRegister(new (zone()) LConstantT); |
| 1761 } else { | 1761 } else { |
| 1762 UNREACHABLE(); | 1762 UNREACHABLE(); |
| 1763 return NULL; | 1763 return NULL; |
| 1764 } | 1764 } |
| 1765 } | 1765 } |
| 1766 | 1766 |
| 1767 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1767 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1768 LOperand* context = UseRegisterAtStart(instr->value()); | 1768 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1769 return DefineAsRegister(new (zone()) LLoadContextSlot(context)); | 1769 LInstruction* result = |
| 1770 DefineAsRegister(new (zone()) LLoadContextSlot(context)); |
| 1771 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1772 result = AssignEnvironment(result); |
| 1773 } |
| 1774 return result; |
| 1770 } | 1775 } |
| 1771 | 1776 |
| 1772 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 1777 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 1773 LOperand* context; | 1778 LOperand* context; |
| 1774 LOperand* value; | 1779 LOperand* value; |
| 1775 if (instr->NeedsWriteBarrier()) { | 1780 if (instr->NeedsWriteBarrier()) { |
| 1776 context = UseTempRegister(instr->context()); | 1781 context = UseTempRegister(instr->context()); |
| 1777 value = UseTempRegister(instr->value()); | 1782 value = UseTempRegister(instr->value()); |
| 1778 } else { | 1783 } else { |
| 1779 context = UseRegister(instr->context()); | 1784 context = UseRegister(instr->context()); |
| 1780 value = UseRegister(instr->value()); | 1785 value = UseRegister(instr->value()); |
| 1781 } | 1786 } |
| 1782 return new (zone()) LStoreContextSlot(context, value); | 1787 LInstruction* result = new (zone()) LStoreContextSlot(context, value); |
| 1788 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1789 result = AssignEnvironment(result); |
| 1790 } |
| 1791 return result; |
| 1783 } | 1792 } |
| 1784 | 1793 |
| 1785 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1794 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1786 LOperand* obj = UseRegisterAtStart(instr->object()); | 1795 LOperand* obj = UseRegisterAtStart(instr->object()); |
| 1787 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); | 1796 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); |
| 1788 } | 1797 } |
| 1789 | 1798 |
| 1790 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 1799 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 1791 HLoadFunctionPrototype* instr) { | 1800 HLoadFunctionPrototype* instr) { |
| 1792 return AssignEnvironment(DefineAsRegister( | 1801 return AssignEnvironment(DefineAsRegister( |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2147 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2139 LOperand* object = UseRegister(instr->object()); | 2148 LOperand* object = UseRegister(instr->object()); |
| 2140 LOperand* index = UseTempRegister(instr->index()); | 2149 LOperand* index = UseTempRegister(instr->index()); |
| 2141 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2150 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
| 2142 LInstruction* result = DefineSameAsFirst(load); | 2151 LInstruction* result = DefineSameAsFirst(load); |
| 2143 return AssignPointerMap(result); | 2152 return AssignPointerMap(result); |
| 2144 } | 2153 } |
| 2145 | 2154 |
| 2146 } // namespace internal | 2155 } // namespace internal |
| 2147 } // namespace v8 | 2156 } // namespace v8 |
| OLD | NEW |