MIPS: Fix return-value from Array.push stub when pushing non-SMI value
authorplind44@gmail.com <plind44@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Aug 2013 05:23:51 +0000 (05:23 +0000)
committerplind44@gmail.com <plind44@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Aug 2013 05:23:51 +0000 (05:23 +0000)
commitb45fa06231b539cb4b80cf9a0897689264b4dd97
tree90677f1a98838a44582b3f9c7c80c1fb32742d4c
parent1e4f40775f317de7a485992ffeddf6b6af4009ad
MIPS: Fix return-value from Array.push stub when pushing non-SMI value

Load and update the arrays length in v0 to make sure the length gets
returned correctly when leaving the function.

Add new testcase.

TEST=mjsunit/array-push-non-smi-value

BUG=130022
R=jkummerow@chromium.org, plind44@gmail.com

Review URL: https://codereview.chromium.org/23589002

Patch from fs <fs@opera.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16377 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/mips/stub-cache-mips.cc
test/mjsunit/array-push-non-smi-value.js [new file with mode: 0644]