Reviewers: Paul Lind, kisg, kilvadyb, Yang, danno,

Message:
PTAL.

Description:
MIPS: Fix --new-string-add feature.

This commit fixes the arguments of NewStringAdd stub in full-codegen.

BUG=

Please review this at https://codereview.chromium.org/96593005/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -0 lines):
  M src/mips/full-codegen-mips.cc


Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index 0407f01c084e1b742173c7d6d397d1c9d73b4b58..35fbad06e4453b78b4ed1faa9b1ab38ed15a42e1 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 {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to