Description[ignition, debugger] correctly set position for return with elided bytecode.
We may not emit bytecode for the evaluation of the to-be-returned
expression. In that case we cannot set two return positions for a return
statement (one before and one after the expression evaluation). This
sets the interpreter apart from full-codegen.
Make sure that we always have the second of the two return positions.
Note that we end up with separate test cases for ignition and FCG.
R=rmcilroy@chromium.org, vogelheim@chromium.org
BUG=v8:4690
LOG=N
Committed: https://crrev.com/3c1dc424d3f2f651ad5f250817eb10c7078da2bc
Cr-Commit-Position: refs/heads/master@{#34771}
Patch Set 1 #
Total comments: 12
Patch Set 2 : addressed comments #
Total comments: 1
Patch Set 3 : do not use --ignition flag #
Messages
Total messages: 20 (7 generated)
|