Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index f9d1ffab0fb8cb80f5009ba31ebca7ab1d9dbb38..55feb4cdae4afbed1dfbe4189df788523b7e64da 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3507,8 +3507,8 @@ void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT_EQ(args->length(), 1); |
- // Load the argument on the stack and call the stub. |
- VisitForStackValue(args->at(0)); |
+ // Load the argument into rax and call the stub. |
+ VisitForAccumulatorValue(args->at(0)); |
NumberToStringStub stub; |
__ CallStub(&stub); |