Chromium Code Reviews| Index: test/mjsunit/compiler/escape-analysis-1.js |
| diff --git a/test/mjsunit/regress/regress-3029.js b/test/mjsunit/compiler/escape-analysis-1.js |
| similarity index 85% |
| copy from test/mjsunit/regress/regress-3029.js |
| copy to test/mjsunit/compiler/escape-analysis-1.js |
| index ae412dff2ba98b52468cd2fa02d7bfc0653cffb9..5c721ace5293cf890387aa9d177eb1e940402c63 100644 |
| --- a/test/mjsunit/regress/regress-3029.js |
| +++ b/test/mjsunit/compiler/escape-analysis-1.js |
| @@ -1,4 +1,4 @@ |
| -// Copyright 2013 the V8 project authors. All rights reserved. |
| +// Copyright 2015 the V8 project authors. All rights reserved. |
| // Redistribution and use in source and binary forms, with or without |
| // modification, are permitted provided that the following conditions are |
| // met: |
| @@ -25,21 +25,19 @@ |
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| -// Flags: --allow-natives-syntax |
| - |
| -function c(x) { |
| - undefined.boom(); |
| -} |
| +// Flags: --allow-natives-syntax --turbo --turbo-escape |
|
Michael Starzinger
2015/11/30 10:05:39
We could drop the "--turbo" from this line, becaus
sigurds
2015/11/30 13:50:24
Done.
|
| +// |
| -function f() { |
| - return new c(); |
| +function f(a) { |
| + "use strict"; |
| + return arguments.length; |
| } |
| function g() { |
| - f(); |
| + return f(1,2,3); |
| } |
| -assertThrows("g()", TypeError); |
| -assertThrows("g()", TypeError); |
| +assertEquals(3, g()); |
| +assertEquals(3, g()); |
| %OptimizeFunctionOnNextCall(g); |
| -assertThrows("g()", TypeError); |
| +assertEquals(3, g()); |