Include the loop header block when eliminating stack checks
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Jun 2011 12:29:03 +0000 (12:29 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Jun 2011 12:29:03 +0000 (12:29 +0000)
commit4fa40ebc780e5b6726415edcf216a37abba2ecc0
treef5759effb58c550399b6975910cd2b7bbcd40312
parent5fb7199b8d4cb4de52782e186e7904e5bd7bcf94
Include the loop header block when eliminating stack checks

In simple unconditional loops - like the following - the hydrogen stack check elimination did not detect the call as the loop header block itself was not considered.

function f(o) {
  while(true) {
    o.a();
  }
}

R=fschneider@chromium.org

BUG=none
TEST=none

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8329 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen.cc