Index: test/mjsunit/regress/regress-2339.js |
diff --git a/test/mjsunit/regress/regress-2339.js b/test/mjsunit/regress/regress-2339.js |
index b16821dbade251a765a715a0bd18a4665dca125a..8355446cfcef69c3921d6d360ddee7e7e2be69c1 100644 |
--- a/test/mjsunit/regress/regress-2339.js |
+++ b/test/mjsunit/regress/regress-2339.js |
@@ -27,18 +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 simple() { |
return simple_two_args(0, undefined); |
} |
@@ -53,7 +41,5 @@ simple(); |
simple(); |
%OptimizeFunctionOnNextCall(simple); |
simple(); |
-var raw_optimized = %GetOptimizationStatus(simple); |
-assertFalse(raw_optimized == OptimizationState.NO); |
+assertOptimized(simple); |
gc(); |
- |