| Index: test/webkit/dfg-dead-speculation.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/dfg-dead-speculation.js
|
| similarity index 77%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/dfg-dead-speculation.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..7778f5a48ef06881c7b726a36a0f4e13884170a1 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/dfg-dead-speculation.js
|
| @@ -22,10 +22,24 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"Tests that the DFG will still perform speculations on dead things."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +function foo(a, b) {
|
| + var x = a.f - b;
|
| + return 10;
|
| +}
|
|
|
| +var thingy = {f:42};
|
| +var variable = 84;
|
| +var expected = 84;
|
| +
|
| +for (var i = 0; i < 200; ++i) {
|
| + if (i == 150) {
|
| + thingy = {f:{valueOf:function(){ variable = 24; return 5; }}};
|
| + expected = 24;
|
| + }
|
| + shouldBe("foo(thingy, i)", "10");
|
| + shouldBe("variable", "" + expected);
|
| +}
|
|
|
|
|