Reviewers: Søren Gjesse,

Description:
Fix error in optimized x.apply(y, arguments) code generation on ARM.  Fixes
issue 784.

Please review this at http://codereview.chromium.org/3048035/show

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

Affected files:
  M     src/arm/codegen-arm.cc


Index: src/arm/codegen-arm.cc
===================================================================
--- src/arm/codegen-arm.cc      (revision 5140)
+++ src/arm/codegen-arm.cc      (working copy)
@@ -1628,6 +1628,7 @@
   // The function and its two arguments have been dropped.
   frame_->Drop();  // Drop the receiver as well.
   frame_->EmitPush(r0);
+  frame_->SpillAll();  // A spilled frame is also jumping to label done.
   // Stack now has 1 element:
   //   sp[0]: result
   __ bind(&done);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to