Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index e790798f77e18c6a579b4833c7e6d30c4659787e..c0879bbd91fc5e3498e7648c7401ab4188bc3361 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -3070,6 +3070,14 @@ void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
} |
+void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { |
+ ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
+ TranscendentalCacheStub stub(TranscendentalCache::TAN, |
+ TranscendentalCacheStub::UNTAGGED); |
+ CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
+} |
+ |
+ |
void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { |
ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
TranscendentalCacheStub stub(TranscendentalCache::COS, |
@@ -3109,6 +3117,9 @@ void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) { |
case kMathSin: |
DoMathSin(instr); |
break; |
+ case kMathTan: |
+ DoMathTan(instr); |
+ break; |
case kMathLog: |
DoMathLog(instr); |
break; |