Description[Interpreter] Removes unnecessary jumps and dead code from If and loops.
Adds an optimization to not emit unnecessary jumps and dead code in If,
For, While, and do-while statments. When the value of condition is known
at compile time, the code is emitted only for the paths that can be taken.
For example, when the condition is known to be true in an if statmenet
only then block is generated.
BUG=v8:4280
LOG=N
Committed: https://crrev.com/77c19034f482c40d215a437751a08854b36c5579
Cr-Commit-Position: refs/heads/master@{#31715}
Patch Set 1 #
Total comments: 14
Patch Set 2 : Addressed review comments #
Total comments: 6
Patch Set 3 : Addressed review comments #Patch Set 4 : rebased the patch #Patch Set 5 : Adds a test for generating JumpIfToBoolean for If statement. The earlier tests were optimized out b… #
Messages
Total messages: 13 (3 generated)
|