Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: test/mjsunit/deopt-with-fp-regs.js

Issue 2654733004: [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Update debugger.status Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/deopt-with-fp-regs.js
diff --git a/test/mjsunit/deopt-with-fp-regs.js b/test/mjsunit/deopt-with-fp-regs.js
index 10e3d9abb3ab3df80340667180fd570017f41ac8..2a27850aa48de1729f6d8fd5cfa689607a84b494 100644
--- a/test/mjsunit/deopt-with-fp-regs.js
+++ b/test/mjsunit/deopt-with-fp-regs.js
@@ -81,10 +81,10 @@ test(10.0, 20.0, 30.0, 40.0, 50.0, 1.5);
test(10.0, 20.0, 30.0, 40.0, 50.0, 1.5);
%OptimizeFunctionOnNextCall(test);
test(10.0, 20.0, 30.0, 40.0, 50.0, 1.5);
-assertTrue(2 != %GetOptimizationStatus(test));
+assertOptimized(test);
// By deleting the field we are forcing the code to deopt when the field is
// read on next execution.
delete deopt_trigger;
test(10.0, 20.0, 30.0, 40.0, 50.0, 1.5);
-assertTrue(1 != %GetOptimizationStatus(test));
+assertUnoptimized(test);

Powered by Google App Engine
This is Rietveld 408576698