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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 1475343002: Revert of [turbofan] Implemented the TruncateFloat32ToInt64 TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/macro-assembler-x64.h ('k') | test/cctest/compiler/test-run-machops.cc » ('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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 950
951 void MacroAssembler::Cvttsd2si(Register dst, const Operand& src) { 951 void MacroAssembler::Cvttsd2si(Register dst, const Operand& src) {
952 if (CpuFeatures::IsSupported(AVX)) { 952 if (CpuFeatures::IsSupported(AVX)) {
953 CpuFeatureScope scope(this, AVX); 953 CpuFeatureScope scope(this, AVX);
954 vcvttsd2si(dst, src); 954 vcvttsd2si(dst, src);
955 } else { 955 } else {
956 cvttsd2si(dst, src); 956 cvttsd2si(dst, src);
957 } 957 }
958 } 958 }
959 959
960
961 void MacroAssembler::Cvttss2siq(Register dst, XMMRegister src) {
962 if (CpuFeatures::IsSupported(AVX)) {
963 CpuFeatureScope scope(this, AVX);
964 vcvttss2siq(dst, src);
965 } else {
966 cvttss2siq(dst, src);
967 }
968 }
969
970
971 void MacroAssembler::Cvttss2siq(Register dst, const Operand& src) {
972 if (CpuFeatures::IsSupported(AVX)) {
973 CpuFeatureScope scope(this, AVX);
974 vcvttss2siq(dst, src);
975 } else {
976 cvttss2siq(dst, src);
977 }
978 }
979
980 960
981 void MacroAssembler::Cvttsd2siq(Register dst, XMMRegister src) { 961 void MacroAssembler::Cvttsd2siq(Register dst, XMMRegister src) {
982 if (CpuFeatures::IsSupported(AVX)) { 962 if (CpuFeatures::IsSupported(AVX)) {
983 CpuFeatureScope scope(this, AVX); 963 CpuFeatureScope scope(this, AVX);
984 vcvttsd2siq(dst, src); 964 vcvttsd2siq(dst, src);
985 } else { 965 } else {
986 cvttsd2siq(dst, src); 966 cvttsd2siq(dst, src);
987 } 967 }
988 } 968 }
989 969
(...skipping 4592 matching lines...) Expand 10 before | Expand all | Expand 10 after
5582 movl(rax, dividend); 5562 movl(rax, dividend);
5583 shrl(rax, Immediate(31)); 5563 shrl(rax, Immediate(31));
5584 addl(rdx, rax); 5564 addl(rdx, rax);
5585 } 5565 }
5586 5566
5587 5567
5588 } // namespace internal 5568 } // namespace internal
5589 } // namespace v8 5569 } // namespace v8
5590 5570
5591 #endif // V8_TARGET_ARCH_X64 5571 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698