| Index: test/mjsunit/regress/regress-4121.js
|
| diff --git a/test/mjsunit/regress/regress-4121.js b/test/mjsunit/regress/regress-4121.js
|
| index a175ed9fd2216e16b2106ac8cf5c467e8722e2a4..ebe69fa0a7fcde36121406f3ecc246ff668b4ab8 100644
|
| --- a/test/mjsunit/regress/regress-4121.js
|
| +++ b/test/mjsunit/regress/regress-4121.js
|
| @@ -42,7 +42,8 @@ function test() {
|
|
|
| function stress_opt_test() {}
|
| stress_opt_test();
|
| -if (%GetOptimizationStatus(stress_opt_test) == 2) {
|
| +var opt_status = %GetOptimizationStatus(stress_opt_test);
|
| +if ((opt_status & V8OptimizationStatus.kAlwaysOptimize) === 0) {
|
| // This test is not suitable for --always-opt mode.
|
| test();
|
| }
|
|
|