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

Unified Diff: test/mjsunit/compiler/regress-loop-variable-unsigned.js

Issue 2222513002: [turbofan] Insert sigma nodes for loop variable backedge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 4 months 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/verifier.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-loop-variable-unsigned.js
diff --git a/test/mjsunit/compiler/regress-loop-variable-unsigned.js b/test/mjsunit/compiler/regress-loop-variable-unsigned.js
new file mode 100644
index 0000000000000000000000000000000000000000..751136eb131f53a3dc2daa01eba734eef643f51f
--- /dev/null
+++ b/test/mjsunit/compiler/regress-loop-variable-unsigned.js
@@ -0,0 +1,23 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --turbo-loop-variable
+
+(function() {
+ function f() {
+ for (var i = 0; i < 4294967295; i += 2) {
+ if (i === 10) break;
+ }
+ }
+ f();
+})();
+
+(function() {
+ function f() {
+ for (var i = 0; i < 4294967293; i += 2) {
+ if (i === 10) break;
+ }
+ }
+ f();
+})();
« no previous file with comments | « src/compiler/verifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698