Simple elimination of redundant array-hole checks.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 9 May 2011 15:21:40 +0000 (15:21 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 9 May 2011 15:21:40 +0000 (15:21 +0000)
commit45d07bcd32b929149e8a93f53939af0ad2a642dc
tree32c28b6f696e050efa518076e6cc1e00f9366b4c
parent2fb4556bfecc147ab522ffdcb39e3fae1f697ef5
Simple elimination of redundant array-hole checks.

If the result of an fast elements load is converted to an untagged
representation we can omit the hole check if the value is not used
anywhere else except for HChange instructions converting it to
an untagged representation since those will deoptimize for the hole
value anyway.
Review URL: http://codereview.chromium.org/6964012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7827 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/lithium-codegen-arm.cc
src/hydrogen-instructions.cc
src/hydrogen-instructions.h
src/ia32/lithium-codegen-ia32.cc
src/x64/lithium-codegen-x64.cc