Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index a676fea898751900e8260a0b1af6b64dccf8e98e..87c0764b604dcc05648251a08701f6684585f742 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -3798,6 +3798,26 @@ void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitMathLog(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_log, 1); |
+ context()->Plug(v0); |
+} |
+ |
+ |
+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)); |
+ __ CallRuntime(Runtime::kMath_sqrt, 1); |
+ context()->Plug(v0); |
+} |
+ |
+ |
void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT(args->length() >= 2); |