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

Unified Diff: test/mjsunit/es6/regress/regress-5598.js

Issue 2478643002: [builtins] fix Allocate() call in ReduceStringIterator() (Closed)
Patch Set: fix formatting in test Created 4 years, 1 month 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/js-builtin-reducer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/regress/regress-5598.js
diff --git a/test/mjsunit/compiler/regress-v8-5573.js b/test/mjsunit/es6/regress/regress-5598.js
similarity index 51%
copy from test/mjsunit/compiler/regress-v8-5573.js
copy to test/mjsunit/es6/regress/regress-5598.js
index 216b791a713bbb5977aeb8248924980da2a6ae2d..600a8664700a22156bf03dc1c9c9ecda33ca072b 100644
--- a/test/mjsunit/compiler/regress-v8-5573.js
+++ b/test/mjsunit/es6/regress/regress-5598.js
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --turbo --turbo-escape --allow-natives-syntax
-var global = true;
-global = false;
-
-function f() {
- return !global;
+function fn(a) {
+ var [b] = a;
+ return b;
}
-%OptimizeFunctionOnNextCall(f);
-assertTrue(f());
+fn('a');
+fn('a');
+%OptimizeFunctionOnNextCall(fn);
+
+fn('a');
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698