Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 9f566cf797689fd8c6761d7abce1e7cbbf4749b0..38ee36106ba1d746f7e753ce2d9f0c66a3e1c70c 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2919,6 +2919,14 @@ void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
} |
+void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { |
+ ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); |
+ TranscendentalCacheStub stub(TranscendentalCache::TAN, |
+ TranscendentalCacheStub::UNTAGGED); |
+ CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
+} |
+ |
+ |
void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { |
ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); |
TranscendentalCacheStub stub(TranscendentalCache::COS, |
@@ -2958,6 +2966,9 @@ void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) { |
case kMathSin: |
DoMathSin(instr); |
break; |
+ case kMathTan: |
+ DoMathTan(instr); |
+ break; |
case kMathLog: |
DoMathLog(instr); |
break; |