Fix instance type check in apply optimization.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Jun 2009 11:35:03 +0000 (11:35 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Jun 2009 11:35:03 +0000 (11:35 +0000)
commita5331d6426f2412ca2dc3c1a90f7247b501b777c
treea8d8acf0b14c67b1db789e4f9191f42fbd936b7f
parent617fa455a66c99c24732dbe06efb68c6497113a4
Fix instance type check in apply optimization.

We accidentally compared a map address with an instance type.  This
fix additionally avoids an upper bounds check that is not needed.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2272 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/codegen-ia32.cc
test/mjsunit/arguments-apply.js