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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 case kArm64Poke: { | 767 case kArm64Poke: { |
768 Operand operand(i.InputInt32(1) * kPointerSize); | 768 Operand operand(i.InputInt32(1) * kPointerSize); |
769 __ Poke(i.InputRegister(0), operand); | 769 __ Poke(i.InputRegister(0), operand); |
770 break; | 770 break; |
771 } | 771 } |
772 case kArm64PokePair: { | 772 case kArm64PokePair: { |
773 int slot = i.InputInt32(2) - 1; | 773 int slot = i.InputInt32(2) - 1; |
774 __ PokePair(i.InputRegister(1), i.InputRegister(0), slot * kPointerSize); | 774 __ PokePair(i.InputRegister(1), i.InputRegister(0), slot * kPointerSize); |
775 break; | 775 break; |
776 } | 776 } |
| 777 case kArm64Clz: |
| 778 __ Clz(i.OutputRegister64(), i.InputRegister64(0)); |
| 779 break; |
777 case kArm64Clz32: | 780 case kArm64Clz32: |
778 __ Clz(i.OutputRegister32(), i.InputRegister32(0)); | 781 __ Clz(i.OutputRegister32(), i.InputRegister32(0)); |
779 break; | 782 break; |
780 case kArm64Cmp: | 783 case kArm64Cmp: |
781 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1)); | 784 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1)); |
782 break; | 785 break; |
783 case kArm64Cmp32: | 786 case kArm64Cmp32: |
784 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); | 787 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
785 break; | 788 break; |
786 case kArm64Cmn: | 789 case kArm64Cmn: |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1460 padding_size -= kInstructionSize; | 1463 padding_size -= kInstructionSize; |
1461 } | 1464 } |
1462 } | 1465 } |
1463 } | 1466 } |
1464 | 1467 |
1465 #undef __ | 1468 #undef __ |
1466 | 1469 |
1467 } // namespace compiler | 1470 } // namespace compiler |
1468 } // namespace internal | 1471 } // namespace internal |
1469 } // namespace v8 | 1472 } // namespace v8 |
OLD | NEW |