Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Fixed the type of RoundInt64ToFloat64 Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 __ AssertZeroExtended(i.OutputRegister()); 932 __ AssertZeroExtended(i.OutputRegister());
933 break; 933 break;
934 } 934 }
935 case kSSEInt32ToFloat64: 935 case kSSEInt32ToFloat64:
936 if (instr->InputAt(0)->IsRegister()) { 936 if (instr->InputAt(0)->IsRegister()) {
937 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 937 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
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 kSSEInt64ToFloat64:
943 if (instr->InputAt(0)->IsRegister()) {
944 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
945 } else {
946 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0));
947 }
948 break;
942 case kSSEUint32ToFloat64: 949 case kSSEUint32ToFloat64:
943 if (instr->InputAt(0)->IsRegister()) { 950 if (instr->InputAt(0)->IsRegister()) {
944 __ movl(kScratchRegister, i.InputRegister(0)); 951 __ movl(kScratchRegister, i.InputRegister(0));
945 } else { 952 } else {
946 __ movl(kScratchRegister, i.InputOperand(0)); 953 __ movl(kScratchRegister, i.InputOperand(0));
947 } 954 }
948 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); 955 __ Cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister);
949 break; 956 break;
950 case kSSEFloat64ExtractLowWord32: 957 case kSSEFloat64ExtractLowWord32:
951 if (instr->InputAt(0)->IsDoubleStackSlot()) { 958 if (instr->InputAt(0)->IsDoubleStackSlot()) {
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1838 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1832 __ Nop(padding_size); 1839 __ Nop(padding_size);
1833 } 1840 }
1834 } 1841 }
1835 1842
1836 #undef __ 1843 #undef __
1837 1844
1838 } // namespace compiler 1845 } // namespace compiler
1839 } // namespace internal 1846 } // namespace internal
1840 } // namespace v8 1847 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698