OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 } | 778 } |
779 break; | 779 break; |
780 case kX64Popcnt32: | 780 case kX64Popcnt32: |
781 if (instr->InputAt(0)->IsRegister()) { | 781 if (instr->InputAt(0)->IsRegister()) { |
782 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); | 782 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); |
783 } else { | 783 } else { |
784 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); | 784 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); |
785 } | 785 } |
786 break; | 786 break; |
787 case kSSEFloat32Cmp: | 787 case kSSEFloat32Cmp: |
788 ASSEMBLE_SSE_BINOP(ucomiss); | 788 ASSEMBLE_SSE_BINOP(Ucomiss); |
789 break; | 789 break; |
790 case kSSEFloat32Add: | 790 case kSSEFloat32Add: |
791 ASSEMBLE_SSE_BINOP(addss); | 791 ASSEMBLE_SSE_BINOP(addss); |
792 break; | 792 break; |
793 case kSSEFloat32Sub: | 793 case kSSEFloat32Sub: |
794 ASSEMBLE_SSE_BINOP(subss); | 794 ASSEMBLE_SSE_BINOP(subss); |
795 break; | 795 break; |
796 case kSSEFloat32Mul: | 796 case kSSEFloat32Mul: |
797 ASSEMBLE_SSE_BINOP(mulss); | 797 ASSEMBLE_SSE_BINOP(mulss); |
798 break; | 798 break; |
(...skipping 23 matching lines...) Expand all Loading... |
822 case kSSEFloat32Max: | 822 case kSSEFloat32Max: |
823 ASSEMBLE_SSE_BINOP(maxss); | 823 ASSEMBLE_SSE_BINOP(maxss); |
824 break; | 824 break; |
825 case kSSEFloat32Min: | 825 case kSSEFloat32Min: |
826 ASSEMBLE_SSE_BINOP(minss); | 826 ASSEMBLE_SSE_BINOP(minss); |
827 break; | 827 break; |
828 case kSSEFloat32ToFloat64: | 828 case kSSEFloat32ToFloat64: |
829 ASSEMBLE_SSE_UNOP(Cvtss2sd); | 829 ASSEMBLE_SSE_UNOP(Cvtss2sd); |
830 break; | 830 break; |
831 case kSSEFloat64Cmp: | 831 case kSSEFloat64Cmp: |
832 ASSEMBLE_SSE_BINOP(ucomisd); | 832 ASSEMBLE_SSE_BINOP(Ucomisd); |
833 break; | 833 break; |
834 case kSSEFloat64Add: | 834 case kSSEFloat64Add: |
835 ASSEMBLE_SSE_BINOP(addsd); | 835 ASSEMBLE_SSE_BINOP(addsd); |
836 break; | 836 break; |
837 case kSSEFloat64Sub: | 837 case kSSEFloat64Sub: |
838 ASSEMBLE_SSE_BINOP(subsd); | 838 ASSEMBLE_SSE_BINOP(subsd); |
839 break; | 839 break; |
840 case kSSEFloat64Mul: | 840 case kSSEFloat64Mul: |
841 ASSEMBLE_SSE_BINOP(mulsd); | 841 ASSEMBLE_SSE_BINOP(mulsd); |
842 break; | 842 break; |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1826 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1826 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1827 __ Nop(padding_size); | 1827 __ Nop(padding_size); |
1828 } | 1828 } |
1829 } | 1829 } |
1830 | 1830 |
1831 #undef __ | 1831 #undef __ |
1832 | 1832 |
1833 } // namespace compiler | 1833 } // namespace compiler |
1834 } // namespace internal | 1834 } // namespace internal |
1835 } // namespace v8 | 1835 } // namespace v8 |
OLD | NEW |