Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index b53e8ee6cde133fdefe74dde81723ddaea3cd45c..22d6c01364072c710145212cfa801868ea6bbe64 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -3518,6 +3518,19 @@ void FullCodeGenerator::EmitToString(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ DCHECK_EQ(1, args->length()); |
+ |
+ // Load the argument into x0 and convert it. |
+ VisitForAccumulatorValue(args->at(0)); |
+ |
+ ToNumberStub stub(isolate()); |
+ __ CallStub(&stub); |
+ context()->Plug(x0); |
+} |
+ |
+ |
void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK_EQ(1, args->length()); |