From de513632352642f74d0a435617b8005923047aa9 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Fri, 29 Nov 2013 19:51:52 +0000 Subject: [PATCH] MIPS: Fix --new-string-add feature. This commit fixes the arguments of NewStringAdd stub in full-codegen. BUG= R=gergely@homejinni.com Review URL: https://codereview.chromium.org/96593005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18166 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/full-codegen-mips.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc index 0407f01..35fbad0 100644 --- a/src/mips/full-codegen-mips.cc +++ b/src/mips/full-codegen-mips.cc @@ -3734,6 +3734,7 @@ void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) { VisitForAccumulatorValue(args->at(1)); __ pop(a1); + __ mov(a0, result_register()); // NewStringAddStub requires args in a0, a1. NewStringAddStub stub(STRING_ADD_CHECK_BOTH, NOT_TENURED); __ CallStub(&stub); } else { -- 2.7.4