| Index: test/mjsunit/compiler/escape-analysis-7.js
|
| diff --git a/test/mjsunit/compiler/escape-analysis-7.js b/test/mjsunit/compiler/escape-analysis-7.js
|
| index 30105f429a15f8a4186ab64e22fcdc89ce32a3cc..16bc71c017e950e6f8d8055f676950cb187a2ece 100644
|
| --- a/test/mjsunit/compiler/escape-analysis-7.js
|
| +++ b/test/mjsunit/compiler/escape-analysis-7.js
|
| @@ -28,24 +28,25 @@
|
| // Flags: --allow-natives-syntax --turbo-escape
|
| //
|
|
|
| -function f(a) {
|
| - "use strict";
|
| - return arguments;
|
| +function f() {
|
| + this.x=0;
|
| }
|
|
|
| function g(a) {
|
| "use strict";
|
| - var x = f(1,2,3);
|
| + var o = new f();
|
| if (a) {
|
| - x[1] = 5;
|
| + o.x = 5;
|
| } else {
|
| - x[1] = 7;
|
| + o.x = 7;
|
| }
|
|
|
| - return x[1];
|
| + return o.x;
|
| }
|
|
|
| -assertEquals(7, g());
|
| -assertEquals(7, g());
|
| +assertEquals(5, g(true));
|
| +assertEquals(7, g(false));
|
| %OptimizeFunctionOnNextCall(g);
|
| +assertEquals(5, g(true));
|
| +assertEquals(7, g(false));
|
| assertEquals(7, g());
|
|
|