| Index: src/crankshaft/mips/lithium-mips.cc
|
| diff --git a/src/crankshaft/mips/lithium-mips.cc b/src/crankshaft/mips/lithium-mips.cc
|
| index ea14026d9a46ace973cf79d74fe157b90c90ca75..c50478e4dd6c3fa82a19b7f0cc75cf31a0342e02 100644
|
| --- a/src/crankshaft/mips/lithium-mips.cc
|
| +++ b/src/crankshaft/mips/lithium-mips.cc
|
| @@ -1074,6 +1074,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:
|
| @@ -1103,6 +1107,19 @@ 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(), f4);
|
| + return MarkAsCall(DefineFixedDouble(new (zone()) LMathCos(input), f4), instr);
|
| +}
|
| +
|
| +LInstruction* LChunkBuilder::DoMathSin(HUnaryMathOperation* instr) {
|
| + DCHECK(instr->representation().IsDouble());
|
| + DCHECK(instr->value()->representation().IsDouble());
|
| + LOperand* input = UseFixedDouble(instr->value(), f4);
|
| + return MarkAsCall(DefineFixedDouble(new (zone()) LMathSin(input), f4), instr);
|
| +}
|
|
|
| LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
|
| DCHECK(instr->representation().IsDouble());
|
|
|