| Index: src/crankshaft/mips64/lithium-mips64.cc
|
| diff --git a/src/crankshaft/mips64/lithium-mips64.cc b/src/crankshaft/mips64/lithium-mips64.cc
|
| index f001ee487af9fe743034631bf1af49514d18c6a7..67c7882c5347985f578b256ac68c1d6192d0ef34 100644
|
| --- a/src/crankshaft/mips64/lithium-mips64.cc
|
| +++ b/src/crankshaft/mips64/lithium-mips64.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());
|
|
|