| Index: src/crankshaft/ppc/lithium-ppc.cc
|
| diff --git a/src/crankshaft/ppc/lithium-ppc.cc b/src/crankshaft/ppc/lithium-ppc.cc
|
| index dd1df0465d1297c6dff8aa0856e30e4beed30722..aa6c3bf8866bccb8b4347d0687ae5d44cbd55cb5 100644
|
| --- a/src/crankshaft/ppc/lithium-ppc.cc
|
| +++ b/src/crankshaft/ppc/lithium-ppc.cc
|
| @@ -1080,6 +1080,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:
|
| @@ -1157,6 +1161,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(), 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());
|
|
|