Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index d8f140254e0de0eb92893580a275f604aac415ba..d40e74aa275401eb53c8da8b166982517b206709 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -3492,6 +3492,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(x0); |
+} |
+ |
+ |
+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(x0); |
+} |
+ |
+ |
void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) { |
ASM_LOCATION("FullCodeGenerator::EmitCallFunction"); |
ZoneList<Expression*>* args = expr->arguments(); |