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/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 case kArmUxtab: | 694 case kArmUxtab: |
695 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), | 695 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), |
696 i.InputInt32(2)); | 696 i.InputInt32(2)); |
697 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 697 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
698 break; | 698 break; |
699 case kArmUxtah: | 699 case kArmUxtah: |
700 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), | 700 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), |
701 i.InputInt32(2)); | 701 i.InputInt32(2)); |
702 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 702 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
703 break; | 703 break; |
| 704 case kArmRbit: { |
| 705 CpuFeatureScope scope(masm(), ARMv7); |
| 706 __ rbit(i.OutputRegister(), i.InputRegister(0)); |
| 707 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 708 break; |
| 709 } |
704 case kArmClz: | 710 case kArmClz: |
705 __ clz(i.OutputRegister(), i.InputRegister(0)); | 711 __ clz(i.OutputRegister(), i.InputRegister(0)); |
706 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 712 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
707 break; | 713 break; |
708 case kArmCmp: | 714 case kArmCmp: |
709 __ cmp(i.InputRegister(0), i.InputOperand2(1)); | 715 __ cmp(i.InputRegister(0), i.InputOperand2(1)); |
710 DCHECK_EQ(SetCC, i.OutputSBit()); | 716 DCHECK_EQ(SetCC, i.OutputSBit()); |
711 break; | 717 break; |
712 case kArmCmn: | 718 case kArmCmn: |
713 __ cmn(i.InputRegister(0), i.InputOperand2(1)); | 719 __ cmn(i.InputRegister(0), i.InputOperand2(1)); |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 padding_size -= v8::internal::Assembler::kInstrSize; | 1452 padding_size -= v8::internal::Assembler::kInstrSize; |
1447 } | 1453 } |
1448 } | 1454 } |
1449 } | 1455 } |
1450 | 1456 |
1451 #undef __ | 1457 #undef __ |
1452 | 1458 |
1453 } // namespace compiler | 1459 } // namespace compiler |
1454 } // namespace internal | 1460 } // namespace internal |
1455 } // namespace v8 | 1461 } // namespace v8 |
OLD | NEW |