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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 } else { | 938 } else { |
939 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 939 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
940 } | 940 } |
941 break; | 941 break; |
942 case kSSEUint32ToFloat64: | 942 case kSSEUint32ToFloat64: |
943 if (instr->InputAt(0)->IsRegister()) { | 943 if (instr->InputAt(0)->IsRegister()) { |
944 __ movl(kScratchRegister, i.InputRegister(0)); | 944 __ movl(kScratchRegister, i.InputRegister(0)); |
945 } else { | 945 } else { |
946 __ movl(kScratchRegister, i.InputOperand(0)); | 946 __ movl(kScratchRegister, i.InputOperand(0)); |
947 } | 947 } |
948 __ cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); | 948 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); |
949 break; | 949 break; |
950 case kSSEFloat64ExtractLowWord32: | 950 case kSSEFloat64ExtractLowWord32: |
951 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 951 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
952 __ movl(i.OutputRegister(), i.InputOperand(0)); | 952 __ movl(i.OutputRegister(), i.InputOperand(0)); |
953 } else { | 953 } else { |
954 __ Movd(i.OutputRegister(), i.InputDoubleRegister(0)); | 954 __ Movd(i.OutputRegister(), i.InputDoubleRegister(0)); |
955 } | 955 } |
956 break; | 956 break; |
957 case kSSEFloat64ExtractHighWord32: | 957 case kSSEFloat64ExtractHighWord32: |
958 if (instr->InputAt(0)->IsDoubleStackSlot()) { | 958 if (instr->InputAt(0)->IsDoubleStackSlot()) { |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1831 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1831 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1832 __ Nop(padding_size); | 1832 __ Nop(padding_size); |
1833 } | 1833 } |
1834 } | 1834 } |
1835 | 1835 |
1836 #undef __ | 1836 #undef __ |
1837 | 1837 |
1838 } // namespace compiler | 1838 } // namespace compiler |
1839 } // namespace internal | 1839 } // namespace internal |
1840 } // namespace v8 | 1840 } // namespace v8 |
OLD | NEW |