| Index: test/mjsunit/never-optimize.js
|
| diff --git a/test/mjsunit/never-optimize.js b/test/mjsunit/never-optimize.js
|
| index 643588ebf41e84c5d42bef8829d9ceb1e756841c..dec00ec5808578b5c3023ea5fcace0a79f03d957 100644
|
| --- a/test/mjsunit/never-optimize.js
|
| +++ b/test/mjsunit/never-optimize.js
|
| @@ -30,8 +30,8 @@
|
| function o1() {
|
| }
|
|
|
| -if (%GetOptimizationStatus(o1) != 4) {
|
| - // 4 == optimization disabled.
|
| +var opt_status = %GetOptimizationStatus(o1);
|
| +if ((opt_status & V8OptimizationStatus.kNeverOptimize) === 0) {
|
| o1(); o1();
|
| %OptimizeFunctionOnNextCall(o1);
|
| o1();
|
| @@ -57,7 +57,6 @@ if (%GetOptimizationStatus(o1) != 4) {
|
| u1(); u1();
|
| u2(); u2();
|
|
|
| - // 2 => not optimized.
|
| assertUnoptimized(u1);
|
| assertOptimized(u2);
|
| }
|
|
|