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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 case kArm64Clz32: | 777 case kArm64Clz32: |
778 __ Clz(i.OutputRegister32(), i.InputRegister32(0)); | 778 __ Clz(i.OutputRegister32(), i.InputRegister32(0)); |
779 break; | 779 break; |
780 case kArm64Cmp: | 780 case kArm64Cmp: |
781 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1)); | 781 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1)); |
782 break; | 782 break; |
783 case kArm64Cmp32: | 783 case kArm64Cmp32: |
784 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); | 784 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
785 break; | 785 break; |
786 case kArm64Cmn: | 786 case kArm64Cmn: |
787 __ Cmn(i.InputRegister(0), i.InputOperand(1)); | 787 __ Cmn(i.InputOrZeroRegister64(0), i.InputOperand(1)); |
788 break; | 788 break; |
789 case kArm64Cmn32: | 789 case kArm64Cmn32: |
790 __ Cmn(i.InputRegister32(0), i.InputOperand32(1)); | 790 __ Cmn(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
791 break; | 791 break; |
792 case kArm64Tst: | 792 case kArm64Tst: |
793 __ Tst(i.InputRegister(0), i.InputOperand(1)); | 793 __ Tst(i.InputRegister(0), i.InputOperand(1)); |
794 break; | 794 break; |
795 case kArm64Tst32: | 795 case kArm64Tst32: |
796 __ Tst(i.InputRegister32(0), i.InputOperand32(1)); | 796 __ Tst(i.InputRegister32(0), i.InputOperand32(1)); |
797 break; | 797 break; |
798 case kArm64Float32Cmp: | 798 case kArm64Float32Cmp: |
799 if (instr->InputAt(1)->IsDoubleRegister()) { | 799 if (instr->InputAt(1)->IsDoubleRegister()) { |
800 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32Register(1)); | 800 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32Register(1)); |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1460 padding_size -= kInstructionSize; | 1460 padding_size -= kInstructionSize; |
1461 } | 1461 } |
1462 } | 1462 } |
1463 } | 1463 } |
1464 | 1464 |
1465 #undef __ | 1465 #undef __ |
1466 | 1466 |
1467 } // namespace compiler | 1467 } // namespace compiler |
1468 } // namespace internal | 1468 } // namespace internal |
1469 } // namespace v8 | 1469 } // namespace v8 |
OLD | NEW |