Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 2ca80166ecb39c0fc325a5e87eca5a86582d4dee..b5ec2d5fdf015e1ab679e9de61004b0c4d140ea7 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -3759,6 +3759,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(r0); |
+} |
+ |
+ |
+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(r0); |
+} |
+ |
+ |
void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT(args->length() >= 2); |