DescriptionScopes: Clean up temporaries handling.
There was a weird check in AllocateNonParameterLocal which looked
like ".result" was treated differently from other
temporaries. This couldn't be generalized to other temporaries,
since some temporaries were both in temps_ and params_ (and some,
like ".result" would be only in params_).
Side product: Don't use AstValueFactory in scope analysis. It's
unnecessary (was only used for some DCHECKs which can be replaced
with more general checks). This change also ensures we don't
create new values during scope analysis.
BUG=v8:5209
Committed: https://crrev.com/696ae1eead43d4beb37cde56d479623fb0eb9102
Cr-Commit-Position: refs/heads/master@{#38655}
Patch Set 1 #Patch Set 2 : wip #Patch Set 3 : . #Patch Set 4 : rebased #Patch Set 5 : removing leftover change #Messages
Total messages: 22 (18 generated)
|