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

Unified Diff: test/mjsunit/compiler/osr-nested3b.js

Issue 898353002: [turbofan] Use heavy-handed graph duplication to do loop peeling for OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add maze tests. Created 5 years, 10 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
« src/compiler/osr.cc ('K') | « test/mjsunit/compiler/osr-nested3.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/osr-nested3b.js
diff --git a/test/mjsunit/compiler/osr-nested3.js b/test/mjsunit/compiler/osr-nested3b.js
similarity index 79%
copy from test/mjsunit/compiler/osr-nested3.js
copy to test/mjsunit/compiler/osr-nested3b.js
index b8f7e79a77f1d86cde42c5077fe87e2f8547325f..b9cbe2120939a3938fb5b5b85be2ef03a260e73f 100644
--- a/test/mjsunit/compiler/osr-nested3.js
+++ b/test/mjsunit/compiler/osr-nested3b.js
@@ -2,17 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --use-osr --turbo-osr
+// Flags: --allow-natives-syntax --use-osr --turbo-osr
function f() {
var sum = 0;
for (var m = 99; m < 100; m++) {
for (var i = 5; i < 6; i++) {
- for (var j = 0; j < 1000000; j++) {
+ for (var j = 0; j < 1000; j++) {
var x = i + 2;
var y = x + 5;
var z = y + 3;
sum += z;
+ if (i == 25) %OptimizeOsr();
}
if (true) break;
}
« src/compiler/osr.cc ('K') | « test/mjsunit/compiler/osr-nested3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698