| Index: test/mjsunit/compiler/escape-analysis-10.js
|
| diff --git a/test/mjsunit/compiler/escape-analysis-1.js b/test/mjsunit/compiler/escape-analysis-10.js
|
| similarity index 89%
|
| copy from test/mjsunit/compiler/escape-analysis-1.js
|
| copy to test/mjsunit/compiler/escape-analysis-10.js
|
| index b8c66448dca61d1be0fefb6491d49b75a46a76b7..c53cf4d9898e82f5222cc1ba1b7b0a3d30c8b021 100644
|
| --- a/test/mjsunit/compiler/escape-analysis-1.js
|
| +++ b/test/mjsunit/compiler/escape-analysis-10.js
|
| @@ -26,18 +26,12 @@
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| // Flags: --allow-natives-syntax --turbo-escape
|
| -//
|
| -
|
| -function f(a) {
|
| +(function() {
|
| "use strict";
|
| - return arguments.length;
|
| -}
|
| -
|
| -function g() {
|
| - return f(1,2,3);
|
| -}
|
| -
|
| -assertEquals(3, g());
|
| -assertEquals(3, g());
|
| -%OptimizeFunctionOnNextCall(g);
|
| -assertEquals(3, g());
|
| + function f() {
|
| + for (let i = 0; i < 5; ++i) {
|
| + function g() { return i }
|
| + }
|
| + }
|
| + f();
|
| +})();
|
|
|