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

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

Issue 1438013003: [turbofan] Implemented the RoundUint64ToFloat32 TurboFan operator for x64, arm64, (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed the test to make it platform independent. 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 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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1094 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1095 break; 1095 break;
1096 case kPPC_Int64ToFloat32: 1096 case kPPC_Int64ToFloat32:
1097 __ ConvertInt64ToFloat(i.InputRegister(0), i.OutputDoubleRegister()); 1097 __ ConvertInt64ToFloat(i.InputRegister(0), i.OutputDoubleRegister());
1098 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1098 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1099 break; 1099 break;
1100 case kPPC_Int64ToDouble: 1100 case kPPC_Int64ToDouble:
1101 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1101 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1102 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1102 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1103 break; 1103 break;
1104 case kPPC_Uint64ToFloat32:
1105 __ ConvertUnsignedInt64ToFloat(i.InputRegister(0),
1106 i.OutputDoubleRegister());
1107 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1108 break;
1104 case kPPC_Uint64ToDouble: 1109 case kPPC_Uint64ToDouble:
1105 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0), 1110 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0),
1106 i.OutputDoubleRegister()); 1111 i.OutputDoubleRegister());
1107 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1112 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1108 break; 1113 break;
1109 #endif 1114 #endif
1110 case kPPC_Int32ToDouble: 1115 case kPPC_Int32ToDouble:
1111 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1116 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1112 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1117 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1113 break; 1118 break;
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 padding_size -= v8::internal::Assembler::kInstrSize; 1728 padding_size -= v8::internal::Assembler::kInstrSize;
1724 } 1729 }
1725 } 1730 }
1726 } 1731 }
1727 1732
1728 #undef __ 1733 #undef __
1729 1734
1730 } // namespace compiler 1735 } // namespace compiler
1731 } // namespace internal 1736 } // namespace internal
1732 } // namespace v8 1737 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698