Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index cbd0788121225de87634145e3225d6091ab6b235..620480275f8fdb27ff1c9a4174ce2db17df1285d 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -3756,35 +3756,9 @@ void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitMathSin(CallRuntime* expr) { |
- // Load the argument on the stack and call the stub. |
- TranscendentalCacheStub stub(TranscendentalCache::SIN, |
- 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::EmitMathCos(CallRuntime* expr) { |
- // Load the argument on the stack and call the stub. |
- TranscendentalCacheStub stub(TranscendentalCache::COS, |
- 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::EmitMathTan(CallRuntime* expr) { |
+void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
// Load the argument on the stack and call the stub. |
- TranscendentalCacheStub stub(TranscendentalCache::TAN, |
+ TranscendentalCacheStub stub(TranscendentalCache::LOG, |
TranscendentalCacheStub::TAGGED); |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT(args->length() == 1); |
@@ -3795,25 +3769,22 @@ void FullCodeGenerator::EmitMathTan(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
- // Load the argument on the stack and call the stub. |
- TranscendentalCacheStub stub(TranscendentalCache::LOG, |
- TranscendentalCacheStub::TAGGED); |
+void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
+ // Load the argument on the stack and call the runtime function. |
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); |
+ __ CallRuntime(Runtime::kMath_sqrt, 1); |
context()->Plug(v0); |
} |
-void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
+void FullCodeGenerator::EmitMathFloor(CallRuntime* expr) { |
// Load the argument on the stack and call the runtime function. |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT(args->length() == 1); |
VisitForStackValue(args->at(0)); |
- __ CallRuntime(Runtime::kMath_sqrt, 1); |
+ __ CallRuntime(Runtime::kMath_floor, 1); |
context()->Plug(v0); |
} |