| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 853ee08963e0a5a15c51b4250d040444f2d29d79..f889470a54baf6fba986b8ad5a988ba2f1111620 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -3611,8 +3611,9 @@ 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 a0 and call the stub.
|
| + VisitForAccumulatorValue(args->at(0));
|
| + __ mov(a0, result_register());
|
|
|
| NumberToStringStub stub;
|
| __ CallStub(&stub);
|
|
|