Check holder before optimizing calls to global functions.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 10 Feb 2011 12:33:51 +0000 (12:33 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 10 Feb 2011 12:33:51 +0000 (12:33 +0000)
commit5b753cecb6ba67a07c049682f8405fd389e235ac
tree1f78951e5e06730fbd0eabedf7684e1d784beeb5
parent49adfd0f0ad6ac250d890eec1ad300076fe3689b
Check holder before optimizing calls to global functions.

In the case where the function is not found in the global object,
we have to generate a generic call.

BUG=v8:1106
TEST=mjsunit/regress/regress-1106.js

Review URL: http://codereview.chromium.org/6483010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6727 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ast.cc
test/mjsunit/regress/regress-1106.js