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

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

Issue 1589363002: [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months 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/wasm-compiler.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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 __ bind(&done); 1190 __ bind(&done);
1191 break; 1191 break;
1192 } 1192 }
1193 case kSSEInt32ToFloat64: 1193 case kSSEInt32ToFloat64:
1194 if (instr->InputAt(0)->IsRegister()) { 1194 if (instr->InputAt(0)->IsRegister()) {
1195 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 1195 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
1196 } else { 1196 } else {
1197 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); 1197 __ Cvtlsi2sd(i.OutputDoubleRegister(), i.InputOperand(0));
1198 } 1198 }
1199 break; 1199 break;
1200 case kSSEInt32ToFloat32:
1201 if (instr->InputAt(0)->IsRegister()) {
1202 __ Cvtlsi2ss(i.OutputDoubleRegister(), i.InputRegister(0));
1203 } else {
1204 __ Cvtlsi2ss(i.OutputDoubleRegister(), i.InputOperand(0));
1205 }
1206 break;
1200 case kSSEInt64ToFloat32: 1207 case kSSEInt64ToFloat32:
1201 if (instr->InputAt(0)->IsRegister()) { 1208 if (instr->InputAt(0)->IsRegister()) {
1202 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0)); 1209 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputRegister(0));
1203 } else { 1210 } else {
1204 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); 1211 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0));
1205 } 1212 }
1206 break; 1213 break;
1207 case kSSEInt64ToFloat64: 1214 case kSSEInt64ToFloat64:
1208 if (instr->InputAt(0)->IsRegister()) { 1215 if (instr->InputAt(0)->IsRegister()) {
1209 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 1216 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2128 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2122 __ Nop(padding_size); 2129 __ Nop(padding_size);
2123 } 2130 }
2124 } 2131 }
2125 2132
2126 #undef __ 2133 #undef __
2127 2134
2128 } // namespace compiler 2135 } // namespace compiler
2129 } // namespace internal 2136 } // namespace internal
2130 } // namespace v8 2137 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698