Description[turbofan] Constant-fold ToNumber conversions.
We can constant-fold JSToNumber conversions during typed lowering
if the input is a known primitive constant (i.e. a string, oddball
or number). I.e. JSToNumber("123") can be constant-folded to 123.
R=jarin@chromium.org
Committed: https://crrev.com/1f85ff077d90cac6e2d57a4d5234f760436cbe55
Cr-Commit-Position: refs/heads/master@{#33654}
Patch Set 1 #Patch Set 2 : Preserve identity of ToNumber w/ number nodes. #Messages
Total messages: 9 (3 generated)
|