| 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 } | 921 } |
| 922 break; | 922 break; |
| 923 case kSSEUint32ToFloat64: | 923 case kSSEUint32ToFloat64: |
| 924 if (instr->InputAt(0)->IsRegister()) { | 924 if (instr->InputAt(0)->IsRegister()) { |
| 925 __ movl(kScratchRegister, i.InputRegister(0)); | 925 __ movl(kScratchRegister, i.InputRegister(0)); |
| 926 } else { | 926 } else { |
| 927 __ movl(kScratchRegister, i.InputOperand(0)); | 927 __ movl(kScratchRegister, i.InputOperand(0)); |
| 928 } | 928 } |
| 929 __ cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); | 929 __ cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); |
| 930 break; | 930 break; |
| 931 case kSSEInt64ToFloat64: |
| 932 if (instr->InputAt(0)->IsRegister()) { |
| 933 __ cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
| 934 } else { |
| 935 __ cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
| 936 } |
| 937 break; |
| 931 case kSSEFloat64ExtractLowWord32: | 938 case kSSEFloat64ExtractLowWord32: |
| 932 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 939 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
| 933 __ movl(i.OutputRegister(), i.InputOperand(0)); | 940 __ movl(i.OutputRegister(), i.InputOperand(0)); |
| 934 } else { | 941 } else { |
| 935 __ movd(i.OutputRegister(), i.InputDoubleRegister(0)); | 942 __ movd(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 936 } | 943 } |
| 937 break; | 944 break; |
| 938 case kSSEFloat64ExtractHighWord32: | 945 case kSSEFloat64ExtractHighWord32: |
| 939 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 946 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
| 940 __ movl(i.OutputRegister(), i.InputOperand(0, kDoubleSize / 2)); | 947 __ movl(i.OutputRegister(), i.InputOperand(0, kDoubleSize / 2)); |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1785 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1779 __ Nop(padding_size); | 1786 __ Nop(padding_size); |
| 1780 } | 1787 } |
| 1781 } | 1788 } |
| 1782 | 1789 |
| 1783 #undef __ | 1790 #undef __ |
| 1784 | 1791 |
| 1785 } // namespace internal | 1792 } // namespace internal |
| 1786 } // namespace compiler | 1793 } // namespace compiler |
| 1787 } // namespace v8 | 1794 } // namespace v8 |
| OLD | NEW |