| "Tests that attempts by the DFG simplification to short-circuit a Phantom to a GetLocal on a variable that is SetLocal'd in the same block, and where the predecessor block(s) make no mention of that variable, do not result in crashes." |
| // Do something that prevents inlining. |
| var a = arguments; // Force arguments to be captured, so that x is captured. |
| stuff(z); // Force a Flush, and then a Phantom on the GetLocal of x. |
| // Trick to delay control flow graph simplification until after the flush of x above gets turned into a phantom. |
| // Basic block that stores to x in foo(), which is a captured variable, with |
| // the predecessor block making no mention of x. |
| result = foo("hello", 2); |
| dfgShouldBe(thingy, "thingy(o)", "42"); |