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

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

Issue 1510973006: Stabilize escape analysis (without deopt) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-guard-bug
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 | « src/compiler/pipeline.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+})();
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698