Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 86cded109de5a8177b7317020183a5aadcb1bc73..93a4a060d8e2b7b81c8e51df78f4644ef86bc771 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3170,6 +3170,14 @@ void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
} |
+void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { |
+ ASSERT(ToDoubleRegister(instr->result()).is(d2)); |
+ TranscendentalCacheStub stub(TranscendentalCache::TAN, |
+ TranscendentalCacheStub::UNTAGGED); |
+ CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
+} |
+ |
+ |
void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { |
ASSERT(ToDoubleRegister(instr->result()).is(d2)); |
TranscendentalCacheStub stub(TranscendentalCache::COS, |
@@ -3209,6 +3217,9 @@ void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) { |
case kMathSin: |
DoMathSin(instr); |
break; |
+ case kMathTan: |
+ DoMathTan(instr); |
+ break; |
case kMathLog: |
DoMathLog(instr); |
break; |