| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 4318b7a428119ef3dbc5cb6144d79e51c4ac86a7..201e6b8e1c54b1e79bce578b1613463578ea93cc 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -3201,6 +3201,19 @@ 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));
|
| + __ mov(a0, result_register()); // Stub requires parameter in a0 and on tos.
|
| + __ CallStub(&stub);
|
| + context()->Plug(v0);
|
| +}
|
| +
|
| +
|
| void FullCodeGenerator::EmitMathLog(CallRuntime* expr) {
|
| // Load the argument on the stack and call the stub.
|
| TranscendentalCacheStub stub(TranscendentalCache::LOG,
|
|
|