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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 if (instr->InputAt(0)->IsDoubleRegister()) { | 908 if (instr->InputAt(0)->IsDoubleRegister()) { |
909 __ cvttsd2siq(i.OutputRegister(), i.InputDoubleRegister(0)); | 909 __ cvttsd2siq(i.OutputRegister(), i.InputDoubleRegister(0)); |
910 } else { | 910 } else { |
911 __ cvttsd2siq(i.OutputRegister(), i.InputOperand(0)); | 911 __ cvttsd2siq(i.OutputRegister(), i.InputOperand(0)); |
912 } | 912 } |
913 __ AssertZeroExtended(i.OutputRegister()); | 913 __ AssertZeroExtended(i.OutputRegister()); |
914 break; | 914 break; |
915 } | 915 } |
916 case kSSEInt32ToFloat64: | 916 case kSSEInt32ToFloat64: |
917 if (instr->InputAt(0)->IsRegister()) { | 917 if (instr->InputAt(0)->IsRegister()) { |
918 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); | 918 __ cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); |
919 } else { | 919 } else { |
920 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); | 920 __ cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
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; |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1812 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1813 __ Nop(padding_size); | 1813 __ Nop(padding_size); |
1814 } | 1814 } |
1815 } | 1815 } |
1816 | 1816 |
1817 #undef __ | 1817 #undef __ |
1818 | 1818 |
1819 } // namespace compiler | 1819 } // namespace compiler |
1820 } // namespace internal | 1820 } // namespace internal |
1821 } // namespace v8 | 1821 } // namespace v8 |
OLD | NEW |