Chromium Code Reviews| Index: src/arm/full-codegen-arm.cc |
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
| index 8e9c189f4db816aa3fe71e1865836aeebfd21e46..8c3e825d191e29a47c5de391fa4a8217202dbd67 100644 |
| --- a/src/arm/full-codegen-arm.cc |
| +++ b/src/arm/full-codegen-arm.cc |
| @@ -3131,6 +3131,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(r0); |
|
ulan
2011/11/25 13:11:41
In future maybe we could define a platform-specifi
|
| +} |
| + |
| + |
| void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| // Load the argument on the stack and call the stub. |
| TranscendentalCacheStub stub(TranscendentalCache::LOG, |