Index: test/mjsunit/deopt-minus-zero.js |
diff --git a/test/mjsunit/deopt-minus-zero.js b/test/mjsunit/deopt-minus-zero.js |
index ee0983127dc3ae10311cf11a88ba40284e366dfe..835494cfcf0a6d07fb93a58d09f1b07377927401 100644 |
--- a/test/mjsunit/deopt-minus-zero.js |
+++ b/test/mjsunit/deopt-minus-zero.js |
@@ -27,17 +27,6 @@ |
// Flags: --allow-natives-syntax --expose-gc |
-/** |
- * The possible optimization states of a function. Must be in sync with the |
- * return values of Runtime_GetOptimizationStatus() in runtime.cc! |
- */ |
-var OptimizationState = { |
- YES: 1, |
- NO: 2, |
- ALWAYS: 3, |
- NEVER: 4 |
-}; |
- |
function mul (a, b) { |
return a * b; |
} |
@@ -50,7 +39,5 @@ mul(0, -1); |
%OptimizeFunctionOnNextCall(mul); |
mul(0, -1); |
-var raw_optimized = %GetOptimizationStatus(mul); |
-assertFalse(raw_optimized == OptimizationState.NO); |
+assertOptimized(mul); |
gc(); |
- |