Index: test/mjsunit/date.js |
diff --git a/test/mjsunit/date.js b/test/mjsunit/date.js |
index a1b7871d60bf06531dcf91438f1c766ff8df81c2..3d72032ab81cbfb8b701a7e7b57d7a60e32a825b 100644 |
--- a/test/mjsunit/date.js |
+++ b/test/mjsunit/date.js |
@@ -333,11 +333,10 @@ date.getTime(); |
date.getTime(); |
%OptimizeFunctionOnNextCall(Date.prototype.getTime); |
assertThrows(function() { Date.prototype.getTime.call(""); }, TypeError); |
-assertTrue(%GetOptimizationStatus(Date.prototype.getTime) != 1); |
+assertUnoptimized(Date.prototype.getTime); |
date.getYear(); |
date.getYear(); |
%OptimizeFunctionOnNextCall(Date.prototype.getYear); |
assertThrows(function() { Date.prototype.getYear.call(""); }, TypeError); |
-opt_status = %GetOptimizationStatus(Date.prototype.getYear); |
-assertTrue(%GetOptimizationStatus(Date.prototype.getTime) != 1); |
+assertUnoptimized(Date.prototype.getYear); |