Skip unreachable blocks when looking for next emitted block.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Mar 2014 07:42:09 +0000 (07:42 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Mar 2014 07:42:09 +0000 (07:42 +0000)
commit0a5113b69fe05c7c4e9c9f1239d4d4e587b6ea55
tree82c8c6983d31a66a2a5f74e4367953d17e8123d2
parentb83b8b9ed4492ffca72a85dd628d45caba77d553
Skip unreachable blocks when looking for next emitted block.

Goto does not emit a jump if the target is the next emitted block.
However, if there is an unreachable block between Goto and the jump
target, we still emit a jump even though the unreachable block is
not actually emitted. That jump is unnecessary.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/174883002

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