Index: src/crankshaft/s390/lithium-s390.cc |
diff --git a/src/crankshaft/s390/lithium-s390.cc b/src/crankshaft/s390/lithium-s390.cc |
index cb3cd6806af74571297e984570504325d27a2209..ae75e9dfd3d2aa48fc507ee6d639a7ccd27b7df9 100644 |
--- a/src/crankshaft/s390/lithium-s390.cc |
+++ b/src/crankshaft/s390/lithium-s390.cc |
@@ -985,6 +985,10 @@ LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
return DoMathAbs(instr); |
case kMathLog: |
return DoMathLog(instr); |
+ case kMathCos: |
+ return DoMathCos(instr); |
+ case kMathSin: |
+ return DoMathSin(instr); |
case kMathExp: |
return DoMathExp(instr); |
case kMathSqrt: |
@@ -1044,6 +1048,20 @@ LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { |
return DefineAsRegister(result); |
} |
+LInstruction* LChunkBuilder::DoMathCos(HUnaryMathOperation* instr) { |
+ DCHECK(instr->representation().IsDouble()); |
+ DCHECK(instr->value()->representation().IsDouble()); |
+ LOperand* input = UseFixedDouble(instr->value(), d0); |
+ return MarkAsCall(DefineFixedDouble(new (zone()) LMathCos(input), d0), instr); |
+} |
+ |
+LInstruction* LChunkBuilder::DoMathSin(HUnaryMathOperation* instr) { |
+ DCHECK(instr->representation().IsDouble()); |
+ DCHECK(instr->value()->representation().IsDouble()); |
+ LOperand* input = UseFixedDouble(instr->value(), d0); |
+ return MarkAsCall(DefineFixedDouble(new (zone()) LMathSin(input), d0), instr); |
+} |
+ |
LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
DCHECK(instr->representation().IsDouble()); |
DCHECK(instr->value()->representation().IsDouble()); |