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

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

Issue 21340002: Generate a custom OSR entrypoint for OSR compiles on all platforms, and transition to optimized cod… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remerge with recent changes. Created 7 years, 3 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
Index: test/mjsunit/compiler/osr-assert.js
diff --git a/test/mjsunit/compiler/osr-two.js b/test/mjsunit/compiler/osr-assert.js
similarity index 90%
copy from test/mjsunit/compiler/osr-two.js
copy to test/mjsunit/compiler/osr-assert.js
index 8ac4c2cc128180ea6843c7c07591b1365f3b37f7..94b901fd4f764b19c7e374b3e7c6013fa5bbd326 100644
--- a/test/mjsunit/compiler/osr-two.js
+++ b/test/mjsunit/compiler/osr-assert.js
@@ -27,18 +27,15 @@
// Flags: --use-osr
-function f(x) {
- var sum = 0;
- var outer = 100;
+function f(x, b, c) {
+ var outer = 1000000;
+ var a = 1;
while (outer > 0) {
- var inner = 100000;
- while (inner > 0) {
- sum += x;
- inner--;
- }
+ a = a + 5;
+ assertEquals(b + 1, c);
outer--;
}
- return sum;
+ return a + 4;
}
-assertEquals(50000000, f(5));
+assertEquals(5000005, f(5, "122", "1221"));
« src/runtime.cc ('K') | « src/x64/lithium-x64.cc ('k') | test/mjsunit/compiler/osr-sar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698