Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index f8e5deaf719c93b73d895f2d533bc417e9d81438..c2bca84bc7c75ba0b93624c3dbf7dc27c8513c38 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3015,6 +3015,18 @@ void FullCodeGenerator::EmitMathCos(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitMathTan(CallRuntime* expr) { |
+ // Load the argument on the stack and call the stub. |
+ TranscendentalCacheStub stub(TranscendentalCache::TAN, |
+ TranscendentalCacheStub::TAGGED); |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ ASSERT(args->length() == 1); |
+ VisitForStackValue(args->at(0)); |
+ __ CallStub(&stub); |
+ context()->Plug(rax); |
+} |
+ |
+ |
void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
// Load the argument on the stack and call the stub. |
TranscendentalCacheStub stub(TranscendentalCache::LOG, |