DescriptionFix expression positions for for-loops.
FullCodegen generates 2 statement positions for the loop init block, like so:
for(var i = 0; i....
^ ^
This change removes the first of those, updates unit tests,
and removes text expectations for Ignition.
---
An alternative would be to emulate the existing behaviour in Ignition, but:
- The new behaviour seems more logical,
- Ignition generates no bytecodes for the 'var', meaning there is no code position to attach the break position to.
BUG=v8:4690
LOG=Y
Committed: https://crrev.com/de4f3d3eff50f0cdd53a6cdf9d4a389d575b17aa
Cr-Commit-Position: refs/heads/master@{#34717}
Patch Set 1 #Patch Set 2 : Update mjsunit tests. #Patch Set 3 : It's not enough to fix the bug. You also need to TELL it you fixed the bug. #
Messages
Total messages: 12 (5 generated)
|