summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/compiler/osr-maze2.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/osr-maze2.js')
-rw-r--r--deps/v8/test/mjsunit/compiler/osr-maze2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/compiler/osr-maze2.js b/deps/v8/test/mjsunit/compiler/osr-maze2.js
index 5255dab191..1dbefe1ac1 100644
--- a/deps/v8/test/mjsunit/compiler/osr-maze2.js
+++ b/deps/v8/test/mjsunit/compiler/osr-maze2.js
@@ -51,7 +51,7 @@ function gen(i) {
body = body.replace(new RegExp("bar"), "bar" + i);
for (var j = 1; j < 10; j++) {
var r = new RegExp("LOOP" + j + "\\(\\);");
- if (i == j) body = body.replace(r, "%OptimizeOsr();");
+ if (i == j) body = body.replace(r, "%OptimizeOsr(); %PrepareFunctionForOptimization(bar" + i +");");
else body = body.replace(r, "");
}
return eval("(" + body + ")");