Fix bug in inlining call-as-function when inlining multiple levels deep.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 26 Oct 2011 10:31:06 +0000 (10:31 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 26 Oct 2011 10:31:06 +0000 (10:31 +0000)
commit2d4bb1803d3980ca924e4c4044dddf6b7b08f8ba
tree58995711f70c974f8a909d6236314a0f11e7a7b8
parenta2fff744e0a398af04edca0e3cb2a673c3fe3e5d
Fix bug in inlining call-as-function when inlining multiple levels deep.

This change fixes a off-by-one level error when dropping the
function from the environment. The function of the outermost
environment was not dropped.

BUG=v8:1785
TEST=test/mjsunit/compiler/regress-inline-callfunctionstub.js
Review URL: http://codereview.chromium.org/8341019

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9789 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen.cc
src/hydrogen.h
test/mjsunit/compiler/regress-inline-callfunctionstub.js [new file with mode: 0644]
test/mjsunit/mjsunit.status