| Index: src/crankshaft/arm/lithium-arm.cc
|
| diff --git a/src/crankshaft/arm/lithium-arm.cc b/src/crankshaft/arm/lithium-arm.cc
|
| index f0f9327a5083f679acc01a76546ccbc901d1d96b..03b05de98683ae70d05ae32cbe513f7470994dad 100644
|
| --- a/src/crankshaft/arm/lithium-arm.cc
|
| +++ b/src/crankshaft/arm/lithium-arm.cc
|
| @@ -1069,6 +1069,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:
|
| @@ -1134,6 +1138,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());
|
|
|