| 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 191 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 192 break; | 192 break; |
| 193 } | 193 } |
| 194 case kArmUdiv: { | 194 case kArmUdiv: { |
| 195 CpuFeatureScope scope(masm(), SUDIV); | 195 CpuFeatureScope scope(masm(), SUDIV); |
| 196 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); | 196 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
| 197 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 197 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 198 break; | 198 break; |
| 199 } | 199 } |
| 200 case kArmMov: | 200 case kArmMov: |
| 201 __ Move(i.OutputRegister(), i.InputOperand2(0)); | 201 __ Move(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit()); |
| 202 DCHECK_EQ(LeaveCC, i.OutputSBit()); | |
| 203 break; | 202 break; |
| 204 case kArmMvn: | 203 case kArmMvn: |
| 205 __ mvn(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit()); | 204 __ mvn(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit()); |
| 206 break; | 205 break; |
| 207 case kArmOrr: | 206 case kArmOrr: |
| 208 __ orr(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 207 __ orr(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
| 209 i.OutputSBit()); | 208 i.OutputSBit()); |
| 210 break; | 209 break; |
| 211 case kArmEor: | 210 case kArmEor: |
| 212 __ eor(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 211 __ eor(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 | 826 |
| 828 void CodeGenerator::AddNopForSmiCodeInlining() { | 827 void CodeGenerator::AddNopForSmiCodeInlining() { |
| 829 // On 32-bit ARM we do not insert nops for inlined Smi code. | 828 // On 32-bit ARM we do not insert nops for inlined Smi code. |
| 830 UNREACHABLE(); | 829 UNREACHABLE(); |
| 831 } | 830 } |
| 832 | 831 |
| 833 #undef __ | 832 #undef __ |
| 834 } | 833 } |
| 835 } | 834 } |
| 836 } // namespace v8::internal::compiler | 835 } // namespace v8::internal::compiler |
| OLD | NEW |