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

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

Issue 1428133002: PPC: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (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
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.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 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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 case kPPC_Uint32ToUint64: 1024 case kPPC_Uint32ToUint64:
1025 // Zero extend 1025 // Zero extend
1026 __ clrldi(i.OutputRegister(), i.InputRegister(0), Operand(32)); 1026 __ clrldi(i.OutputRegister(), i.InputRegister(0), Operand(32));
1027 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1027 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1028 break; 1028 break;
1029 case kPPC_Int64ToInt32: 1029 case kPPC_Int64ToInt32:
1030 // TODO(mbrandy): sign extend? 1030 // TODO(mbrandy): sign extend?
1031 __ Move(i.OutputRegister(), i.InputRegister(0)); 1031 __ Move(i.OutputRegister(), i.InputRegister(0));
1032 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1032 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1033 break; 1033 break;
1034 case kPPC_Int64ToDouble:
1035 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1036 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1037 break;
1034 #endif 1038 #endif
1035 case kPPC_Int32ToDouble: 1039 case kPPC_Int32ToDouble:
1036 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1040 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1037 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1041 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1038 break; 1042 break;
1039 case kPPC_Uint32ToDouble: 1043 case kPPC_Uint32ToDouble:
1040 __ ConvertUnsignedIntToDouble(i.InputRegister(0), 1044 __ ConvertUnsignedIntToDouble(i.InputRegister(0),
1041 i.OutputDoubleRegister()); 1045 i.OutputDoubleRegister());
1042 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1046 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1043 break; 1047 break;
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 padding_size -= v8::internal::Assembler::kInstrSize; 1652 padding_size -= v8::internal::Assembler::kInstrSize;
1649 } 1653 }
1650 } 1654 }
1651 } 1655 }
1652 1656
1653 #undef __ 1657 #undef __
1654 1658
1655 } // namespace compiler 1659 } // namespace compiler
1656 } // namespace internal 1660 } // namespace internal
1657 } // namespace v8 1661 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698