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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 __ Tzcntq(i.OutputRegister(), i.InputOperand(0)); | 789 __ Tzcntq(i.OutputRegister(), i.InputOperand(0)); |
790 } | 790 } |
791 break; | 791 break; |
792 case kX64Tzcnt32: | 792 case kX64Tzcnt32: |
793 if (instr->InputAt(0)->IsRegister()) { | 793 if (instr->InputAt(0)->IsRegister()) { |
794 __ Tzcntl(i.OutputRegister(), i.InputRegister(0)); | 794 __ Tzcntl(i.OutputRegister(), i.InputRegister(0)); |
795 } else { | 795 } else { |
796 __ Tzcntl(i.OutputRegister(), i.InputOperand(0)); | 796 __ Tzcntl(i.OutputRegister(), i.InputOperand(0)); |
797 } | 797 } |
798 break; | 798 break; |
| 799 case kX64Popcnt: |
| 800 if (instr->InputAt(0)->IsRegister()) { |
| 801 __ Popcntq(i.OutputRegister(), i.InputRegister(0)); |
| 802 } else { |
| 803 __ Popcntq(i.OutputRegister(), i.InputOperand(0)); |
| 804 } |
| 805 break; |
799 case kX64Popcnt32: | 806 case kX64Popcnt32: |
800 if (instr->InputAt(0)->IsRegister()) { | 807 if (instr->InputAt(0)->IsRegister()) { |
801 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); | 808 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); |
802 } else { | 809 } else { |
803 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); | 810 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); |
804 } | 811 } |
805 break; | 812 break; |
806 case kSSEFloat32Cmp: | 813 case kSSEFloat32Cmp: |
807 ASSEMBLE_SSE_BINOP(Ucomiss); | 814 ASSEMBLE_SSE_BINOP(Ucomiss); |
808 break; | 815 break; |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1852 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1859 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1853 __ Nop(padding_size); | 1860 __ Nop(padding_size); |
1854 } | 1861 } |
1855 } | 1862 } |
1856 | 1863 |
1857 #undef __ | 1864 #undef __ |
1858 | 1865 |
1859 } // namespace compiler | 1866 } // namespace compiler |
1860 } // namespace internal | 1867 } // namespace internal |
1861 } // namespace v8 | 1868 } // namespace v8 |
OLD | NEW |