Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index d200a1e88b8a51959641e3a616a79f80e8c6c3c4..5c0703bc37434ea91b475990e4f09349a596b2c2 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6649,6 +6649,18 @@ void HGraphBuilder::GenerateMathCos(CallRuntime* call) { |
} |
+void HGraphBuilder::GenerateMathTan(CallRuntime* call) { |
+ ASSERT_EQ(1, call->arguments()->length()); |
+ CHECK_ALIVE(VisitArgumentList(call->arguments())); |
+ HValue* context = environment()->LookupContext(); |
+ HCallStub* result = |
+ new(zone()) HCallStub(context, CodeStub::TranscendentalCache, 1); |
+ result->set_transcendental_type(TranscendentalCache::TAN); |
+ Drop(1); |
+ return ast_context()->ReturnInstruction(result, call->id()); |
+} |
+ |
+ |
void HGraphBuilder::GenerateMathLog(CallRuntime* call) { |
ASSERT_EQ(1, call->arguments()->length()); |
CHECK_ALIVE(VisitArgumentList(call->arguments())); |