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

Side by Side Diff: src/x64/assembler-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/x64/assembler-x64.h ('k') | src/x64/macro-assembler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 DCHECK(!IsEnabled(AVX)); 3172 DCHECK(!IsEnabled(AVX));
3173 EnsureSpace ensure_space(this); 3173 EnsureSpace ensure_space(this);
3174 emit(0xF2); 3174 emit(0xF2);
3175 emit_optional_rex_32(dst, src); 3175 emit_optional_rex_32(dst, src);
3176 emit(0x0F); 3176 emit(0x0F);
3177 emit(0x2A); 3177 emit(0x2A);
3178 emit_sse_operand(dst, src); 3178 emit_sse_operand(dst, src);
3179 } 3179 }
3180 3180
3181 3181
3182 void Assembler::cvtlsi2ss(XMMRegister dst, const Operand& src) {
3183 DCHECK(!IsEnabled(AVX));
3184 EnsureSpace ensure_space(this);
3185 emit(0xF3);
3186 emit_optional_rex_32(dst, src);
3187 emit(0x0F);
3188 emit(0x2A);
3189 emit_sse_operand(dst, src);
3190 }
3191
3192
3182 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { 3193 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) {
3183 EnsureSpace ensure_space(this); 3194 EnsureSpace ensure_space(this);
3184 emit(0xF3); 3195 emit(0xF3);
3185 emit_optional_rex_32(dst, src); 3196 emit_optional_rex_32(dst, src);
3186 emit(0x0F); 3197 emit(0x0F);
3187 emit(0x2A); 3198 emit(0x2A);
3188 emit_sse_operand(dst, src); 3199 emit_sse_operand(dst, src);
3189 } 3200 }
3190 3201
3191 3202
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
4138 4149
4139 bool RelocInfo::IsInConstantPool() { 4150 bool RelocInfo::IsInConstantPool() {
4140 return false; 4151 return false;
4141 } 4152 }
4142 4153
4143 4154
4144 } // namespace internal 4155 } // namespace internal
4145 } // namespace v8 4156 } // namespace v8
4146 4157
4147 #endif // V8_TARGET_ARCH_X64 4158 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698