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