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

Side by Side Diff: src/crankshaft/s390/lithium-s390.cc

Issue 2078273002: PPC/s390: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/crankshaft/s390/lithium-s390.h ('k') | no next file » | 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/crankshaft/s390/lithium-s390.h" 5 #include "src/crankshaft/s390/lithium-s390.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 case kMathFloor: 978 case kMathFloor:
979 return DoMathFloor(instr); 979 return DoMathFloor(instr);
980 case kMathRound: 980 case kMathRound:
981 return DoMathRound(instr); 981 return DoMathRound(instr);
982 case kMathFround: 982 case kMathFround:
983 return DoMathFround(instr); 983 return DoMathFround(instr);
984 case kMathAbs: 984 case kMathAbs:
985 return DoMathAbs(instr); 985 return DoMathAbs(instr);
986 case kMathLog: 986 case kMathLog:
987 return DoMathLog(instr); 987 return DoMathLog(instr);
988 case kMathCos:
989 return DoMathCos(instr);
990 case kMathSin:
991 return DoMathSin(instr);
988 case kMathExp: 992 case kMathExp:
989 return DoMathExp(instr); 993 return DoMathExp(instr);
990 case kMathSqrt: 994 case kMathSqrt:
991 return DoMathSqrt(instr); 995 return DoMathSqrt(instr);
992 case kMathPowHalf: 996 case kMathPowHalf:
993 return DoMathPowHalf(instr); 997 return DoMathPowHalf(instr);
994 case kMathClz32: 998 case kMathClz32:
995 return DoMathClz32(instr); 999 return DoMathClz32(instr);
996 default: 1000 default:
997 UNREACHABLE(); 1001 UNREACHABLE();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 LOperand* input = UseFixedDouble(instr->value(), d0); 1041 LOperand* input = UseFixedDouble(instr->value(), d0);
1038 return MarkAsCall(DefineFixedDouble(new (zone()) LMathLog(input), d0), instr); 1042 return MarkAsCall(DefineFixedDouble(new (zone()) LMathLog(input), d0), instr);
1039 } 1043 }
1040 1044
1041 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { 1045 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) {
1042 LOperand* input = UseRegisterAtStart(instr->value()); 1046 LOperand* input = UseRegisterAtStart(instr->value());
1043 LMathClz32* result = new (zone()) LMathClz32(input); 1047 LMathClz32* result = new (zone()) LMathClz32(input);
1044 return DefineAsRegister(result); 1048 return DefineAsRegister(result);
1045 } 1049 }
1046 1050
1051 LInstruction* LChunkBuilder::DoMathCos(HUnaryMathOperation* instr) {
1052 DCHECK(instr->representation().IsDouble());
1053 DCHECK(instr->value()->representation().IsDouble());
1054 LOperand* input = UseFixedDouble(instr->value(), d0);
1055 return MarkAsCall(DefineFixedDouble(new (zone()) LMathCos(input), d0), instr);
1056 }
1057
1058 LInstruction* LChunkBuilder::DoMathSin(HUnaryMathOperation* instr) {
1059 DCHECK(instr->representation().IsDouble());
1060 DCHECK(instr->value()->representation().IsDouble());
1061 LOperand* input = UseFixedDouble(instr->value(), d0);
1062 return MarkAsCall(DefineFixedDouble(new (zone()) LMathSin(input), d0), instr);
1063 }
1064
1047 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1065 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1048 DCHECK(instr->representation().IsDouble()); 1066 DCHECK(instr->representation().IsDouble());
1049 DCHECK(instr->value()->representation().IsDouble()); 1067 DCHECK(instr->value()->representation().IsDouble());
1050 LOperand* input = UseFixedDouble(instr->value(), d0); 1068 LOperand* input = UseFixedDouble(instr->value(), d0);
1051 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr); 1069 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr);
1052 } 1070 }
1053 1071
1054 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1072 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1055 LOperand* input = UseRegisterAtStart(instr->value()); 1073 LOperand* input = UseRegisterAtStart(instr->value());
1056 LMathSqrt* result = new (zone()) LMathSqrt(input); 1074 LMathSqrt* result = new (zone()) LMathSqrt(input);
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2272 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2255 LOperand* object = UseRegister(instr->object()); 2273 LOperand* object = UseRegister(instr->object());
2256 LOperand* index = UseTempRegister(instr->index()); 2274 LOperand* index = UseTempRegister(instr->index());
2257 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2275 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2258 LInstruction* result = DefineSameAsFirst(load); 2276 LInstruction* result = DefineSameAsFirst(load);
2259 return AssignPointerMap(result); 2277 return AssignPointerMap(result);
2260 } 2278 }
2261 2279
2262 } // namespace internal 2280 } // namespace internal
2263 } // namespace v8 2281 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698