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

Unified Diff: test/mjsunit/ensure-growing-store-learns.js

Issue 2654733004: [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: 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/ensure-growing-store-learns.js
diff --git a/test/mjsunit/ensure-growing-store-learns.js b/test/mjsunit/ensure-growing-store-learns.js
index e64fe9392187088c594cccdb4a64f581d046fbe5..d125da75813360390a13579615a2d0eec9c37101 100644
--- a/test/mjsunit/ensure-growing-store-learns.js
+++ b/test/mjsunit/ensure-growing-store-learns.js
@@ -61,7 +61,8 @@
foo2(a, 40);
// This test is way too slow without crankshaft.
- if (4 != %GetOptimizationStatus(foo2)) {
+ var opt_status = %GetOptimizationStatus(foo2);
+ if ((opt_status & V8OptimizationStatus.kNeverOptimize) === 0) {
assertOptimized(foo2);
assertTrue(%HasFastSmiElements(a));

Powered by Google App Engine
This is Rietveld 408576698