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

Unified Diff: test/mjsunit/compiler/osr-regex-id.js

Issue 906243002: Make it easier to test OSR with %OptimizeOsr() runtime call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « test/mjsunit/compiler/osr-manual2.js ('k') | test/mjsunit/compiler/osr-simple.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/osr-regex-id.js
diff --git a/test/mjsunit/compiler/osr-regex-id.js b/test/mjsunit/compiler/osr-regex-id.js
index f703e3bda7f9aa1efebc8dd1c78dea1ed26c96cb..7831b148408b63b9569aca7eb30085f62cfc9b28 100644
--- a/test/mjsunit/compiler/osr-regex-id.js
+++ b/test/mjsunit/compiler/osr-regex-id.js
@@ -9,14 +9,14 @@ function id(f) { return f; }
function foo(a) {
var r = /\0/;
for (var i = 0; i < 10; i++) {
- if (a) %OptimizeFunctionOnNextCall(foo, "osr");
+ if (a) %OptimizeOsr();
}
return r;
}
function bar(a) {
for (var i = 0; i < 10; i++) {
- if (a) %OptimizeFunctionOnNextCall(bar, "osr");
+ if (a) %OptimizeOsr();
var r = /\0/;
}
return r;
@@ -24,7 +24,7 @@ function bar(a) {
function baz(a) {
for (var i = 0; i < 10; i++) {
- if (a) %OptimizeFunctionOnNextCall(baz, "osr");
+ if (a) %OptimizeOsr();
}
return /\0/;
}
@@ -32,7 +32,7 @@ function baz(a) {
function qux(a) {
for (var i = 0; i < 10; i++) {
if (i > 5 && a) {
- %OptimizeFunctionOnNextCall(qux, "osr");
+ %OptimizeOsr();
} else {
var r = /\0/;
}
« no previous file with comments | « test/mjsunit/compiler/osr-manual2.js ('k') | test/mjsunit/compiler/osr-simple.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698