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

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

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 __ AssertZeroExtended(i.OutputRegister()); 946 __ AssertZeroExtended(i.OutputRegister());
947 break; 947 break;
948 } 948 }
949 case kSSEInt32ToFloat64: 949 case kSSEInt32ToFloat64:
950 if (instr->InputAt(0)->IsRegister()) { 950 if (instr->InputAt(0)->IsRegister()) {
951 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 951 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
952 } else { 952 } else {
953 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); 953 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0));
954 } 954 }
955 break; 955 break;
956 case kSSEInt64ToFloat32:
957 if (instr->InputAt(0)->IsRegister()) {
958 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0));
959 } else {
960 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0));
961 }
962 break;
956 case kSSEInt64ToFloat64: 963 case kSSEInt64ToFloat64:
957 if (instr->InputAt(0)->IsRegister()) { 964 if (instr->InputAt(0)->IsRegister()) {
958 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 965 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
959 } else { 966 } else {
960 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); 967 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0));
961 } 968 }
962 break; 969 break;
963 case kSSEUint32ToFloat64: 970 case kSSEUint32ToFloat64:
964 if (instr->InputAt(0)->IsRegister()) { 971 if (instr->InputAt(0)->IsRegister()) {
965 __ movl(kScratchRegister, i.InputRegister(0)); 972 __ movl(kScratchRegister, i.InputRegister(0));
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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