Move more don't-crankshaft computation to numbering pass
authorwingo <wingo@igalia.com>
Wed, 3 Dec 2014 14:52:36 +0000 (06:52 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Dec 2014 14:52:42 +0000 (14:52 +0000)
commit21b23e6966ba7a309532a0626e0dd5a24360e69b
tree72c79f734129a9b7a6e030a9c24c1d385d883f3c
parent68c800ef9dd2603e177f9854cf16388a2922fe30
Move more don't-crankshaft computation to numbering pass

The "do I inline?" decision needs many of the same inputs as the "should
I even try to crankshaft?" decision.  This change consolidates these
checks in the numbering pass.  It also removes the is_generator() check,
as that's already handled when visiting the initial Yield expression.

R=svenpanne@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25642}
src/ast-numbering.cc
src/hydrogen.cc