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

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

Issue 1446363002: MIPS64: Improve UInt32 to Double conversion. (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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/code-generator-impl.h" 6 #include "src/compiler/code-generator-impl.h"
7 #include "src/compiler/gap-resolver.h" 7 #include "src/compiler/gap-resolver.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/osr.h" 9 #include "src/compiler/osr.h"
10 #include "src/mips/macro-assembler-mips.h" 10 #include "src/mips/macro-assembler-mips.h"
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 __ cvt_s_l(i.OutputDoubleRegister(), scratch); 946 __ cvt_s_l(i.OutputDoubleRegister(), scratch);
947 break; 947 break;
948 } 948 }
949 case kMips64CvtDL: { 949 case kMips64CvtDL: {
950 FPURegister scratch = kScratchDoubleReg; 950 FPURegister scratch = kScratchDoubleReg;
951 __ dmtc1(i.InputRegister(0), scratch); 951 __ dmtc1(i.InputRegister(0), scratch);
952 __ cvt_d_l(i.OutputDoubleRegister(), scratch); 952 __ cvt_d_l(i.OutputDoubleRegister(), scratch);
953 break; 953 break;
954 } 954 }
955 case kMips64CvtDUw: { 955 case kMips64CvtDUw: {
956 FPURegister scratch = kScratchDoubleReg; 956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0));
957 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch);
958 break; 957 break;
959 } 958 }
960 case kMips64CvtDUl: { 959 case kMips64CvtDUl: {
961 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); 960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0));
962 break; 961 break;
963 } 962 }
964 case kMips64TruncWD: { 963 case kMips64TruncWD: {
965 FPURegister scratch = kScratchDoubleReg; 964 FPURegister scratch = kScratchDoubleReg;
966 // Other arches use round to zero here, so we follow. 965 // Other arches use round to zero here, so we follow.
967 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); 966 __ trunc_w_d(scratch, i.InputDoubleRegister(0));
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 padding_size -= v8::internal::Assembler::kInstrSize; 1687 padding_size -= v8::internal::Assembler::kInstrSize;
1689 } 1688 }
1690 } 1689 }
1691 } 1690 }
1692 1691
1693 #undef __ 1692 #undef __
1694 1693
1695 } // namespace compiler 1694 } // namespace compiler
1696 } // namespace internal 1695 } // namespace internal
1697 } // namespace v8 1696 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | src/mips64/macro-assembler-mips64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698