Index: test/mjsunit/compiler/escape-analysis-deopt-5.js |
diff --git a/test/mjsunit/compiler/escape-analysis-1.js b/test/mjsunit/compiler/escape-analysis-deopt-5.js |
similarity index 84% |
copy from test/mjsunit/compiler/escape-analysis-1.js |
copy to test/mjsunit/compiler/escape-analysis-deopt-5.js |
index b8c66448dca61d1be0fefb6491d49b75a46a76b7..e70f0b1221bd9ab9b33c72da70db4a38897fe34b 100644 |
--- a/test/mjsunit/compiler/escape-analysis-1.js |
+++ b/test/mjsunit/compiler/escape-analysis-deopt-5.js |
@@ -1,4 +1,4 @@ |
-// Copyright 2015 the V8 project authors. All rights reserved. |
+// Copyright 2016 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: |
@@ -26,18 +26,16 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Flags: --allow-natives-syntax --turbo-escape |
-// |
- |
-function f(a) { |
- "use strict"; |
- return arguments.length; |
-} |
-function g() { |
- return f(1,2,3); |
+function f() { |
+ var x = new Array(2); |
+ x[0] = 23.1234; |
+ x[1] = 25.1234; |
+ %DeoptimizeNow(); |
+ return x[0]; |
} |
-assertEquals(3, g()); |
-assertEquals(3, g()); |
-%OptimizeFunctionOnNextCall(g); |
-assertEquals(3, g()); |
+assertEquals(f(), 23.1234); |
+assertEquals(f(), 23.1234); |
+%OptimizeFunctionOnNextCall(f); |
+assertEquals(f(), 23.1234); |