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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 } else { | 1690 } else { |
1691 return DefineAsRegister(new (zone()) LInteger32ToDouble(Use(val))); | 1691 return DefineAsRegister(new (zone()) LInteger32ToDouble(Use(val))); |
1692 } | 1692 } |
1693 } | 1693 } |
1694 } | 1694 } |
1695 UNREACHABLE(); | 1695 UNREACHABLE(); |
1696 return NULL; | 1696 return NULL; |
1697 } | 1697 } |
1698 | 1698 |
1699 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1699 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
1700 LOperand* value = UseRegisterAtStart(instr->value()); | 1700 LOperand* value = UseAtStart(instr->value()); |
1701 LInstruction* result = new (zone()) LCheckNonSmi(value); | 1701 LInstruction* result = new (zone()) LCheckNonSmi(value); |
1702 if (!instr->value()->type().IsHeapObject()) { | 1702 if (!instr->value()->type().IsHeapObject()) { |
1703 result = AssignEnvironment(result); | 1703 result = AssignEnvironment(result); |
1704 } | 1704 } |
1705 return result; | 1705 return result; |
1706 } | 1706 } |
1707 | 1707 |
1708 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1708 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1709 LOperand* value = UseRegisterAtStart(instr->value()); | 1709 LOperand* value = UseAtStart(instr->value()); |
1710 return AssignEnvironment(new (zone()) LCheckSmi(value)); | 1710 return AssignEnvironment(new (zone()) LCheckSmi(value)); |
1711 } | 1711 } |
1712 | 1712 |
1713 LInstruction* LChunkBuilder::DoCheckArrayBufferNotNeutered( | 1713 LInstruction* LChunkBuilder::DoCheckArrayBufferNotNeutered( |
1714 HCheckArrayBufferNotNeutered* instr) { | 1714 HCheckArrayBufferNotNeutered* instr) { |
1715 LOperand* view = UseRegisterAtStart(instr->value()); | 1715 LOperand* view = UseRegisterAtStart(instr->value()); |
1716 LCheckArrayBufferNotNeutered* result = | 1716 LCheckArrayBufferNotNeutered* result = |
1717 new (zone()) LCheckArrayBufferNotNeutered(view); | 1717 new (zone()) LCheckArrayBufferNotNeutered(view); |
1718 return AssignEnvironment(result); | 1718 return AssignEnvironment(result); |
1719 } | 1719 } |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2166 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2167 LOperand* object = UseRegister(instr->object()); | 2167 LOperand* object = UseRegister(instr->object()); |
2168 LOperand* index = UseTempRegister(instr->index()); | 2168 LOperand* index = UseTempRegister(instr->index()); |
2169 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2169 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
2170 LInstruction* result = DefineSameAsFirst(load); | 2170 LInstruction* result = DefineSameAsFirst(load); |
2171 return AssignPointerMap(result); | 2171 return AssignPointerMap(result); |
2172 } | 2172 } |
2173 | 2173 |
2174 } // namespace internal | 2174 } // namespace internal |
2175 } // namespace v8 | 2175 } // namespace v8 |
OLD | NEW |