| Index: test/webkit/dfg-uint32-to-number-skip-then-exit.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/dfg-uint32-to-number-skip-then-exit.js
|
| similarity index 75%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/dfg-uint32-to-number-skip-then-exit.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..13029d2f35b4783cc697759138cce1fe70b0cd0d 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/dfg-uint32-to-number-skip-then-exit.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."
|
| +"This tests that a skipped conversion of uint32 to number does not confuse OSR exit into thinking that the conversion is dead."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +function foo(a, b, o) {
|
| + var x = a >>> b;
|
| + return o.f + (x | 0);
|
| +}
|
|
|
| +for (var i = 0; i < 200; ++i) {
|
| + var o;
|
| + var expected;
|
| + if (i < 150) {
|
| + o = {f:42};
|
| + expected = 42 + ((i / 2) | 0);
|
| + } else {
|
| + o = {f:43, g:44};
|
| + expected = 43 + ((i / 2) | 0);
|
| + }
|
| + shouldBe("foo(i, 1, o)", "" + expected);
|
| +}
|
|
|
|
|