Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: test/mjsunit/compiler/escape-analysis-3.js

Issue 1457683003: [turbofan] Initial support for escape analysis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/compiler/escape-analysis-2.js ('k') | test/mjsunit/compiler/escape-analysis-4.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/escape-analysis-3.js
diff --git a/test/mjsunit/regress/regress-3029.js b/test/mjsunit/compiler/escape-analysis-3.js
similarity index 84%
copy from test/mjsunit/regress/regress-3029.js
copy to test/mjsunit/compiler/escape-analysis-3.js
index ae412dff2ba98b52468cd2fa02d7bfc0653cffb9..d1ebc9b1f8c72de8981784df9c87b552e52c080f 100644
--- a/test/mjsunit/regress/regress-3029.js
+++ b/test/mjsunit/compiler/escape-analysis-3.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,20 @@
// (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-escape
+//
-function f() {
- return new c();
+function f(a) {
+ "use strict";
+ return arguments.length;
}
function g() {
- f();
+ "use strict";
+ return arguments[f(1,2)];
}
-assertThrows("g()", TypeError);
-assertThrows("g()", TypeError);
+assertEquals(6, g(4,5,6));
+assertEquals(6, g(4,5,6));
%OptimizeFunctionOnNextCall(g);
-assertThrows("g()", TypeError);
+assertEquals(6, g(4,5,6));
« no previous file with comments | « test/mjsunit/compiler/escape-analysis-2.js ('k') | test/mjsunit/compiler/escape-analysis-4.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698