Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 9575c5a83dcd3e80ce59b1b6b43eb845bf0ddd11..0702b3472a92970e662e85ab5c57c18c5fe6419f 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3082,6 +3082,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(eax); |
+} |
+ |
+ |
void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
// Load the argument on the stack and call the stub. |
TranscendentalCacheStub stub(TranscendentalCache::LOG, |