Index: test/mjsunit/osr-elements-kind.js |
diff --git a/test/mjsunit/osr-elements-kind.js b/test/mjsunit/osr-elements-kind.js |
index 518b9847430f93f7bf85daeeecee9797e3f75c9a..389b6dac6f7f5cb90980f2895e20464befe392bd 100644 |
--- a/test/mjsunit/osr-elements-kind.js |
+++ b/test/mjsunit/osr-elements-kind.js |
@@ -88,11 +88,10 @@ function assertKind(expected, obj, name_opt) { |
assertEquals(expected, getKind(obj), name_opt); |
} |
-// long-running loop forces OSR. |
%NeverOptimizeFunction(construct_smis); |
%NeverOptimizeFunction(construct_doubles); |
%NeverOptimizeFunction(convert_mixed); |
-for (var i = 0; i < 1000000; i++) { } |
+for (var i = 0; i < 10; i++) { if (i == 5) %OptimizeOsr(); } |
// This code exists to eliminate the learning influence of AllocationSites |
// on the following tests. |