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

Unified Diff: test/mjsunit/keyed-load-hole-to-undefined.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/keyed-load-hole-to-undefined.js
diff --git a/test/mjsunit/keyed-load-hole-to-undefined.js b/test/mjsunit/keyed-load-hole-to-undefined.js
index e9403b8c5e2233d00e3763cec05fda70fb729e43..fac829d24fab533873333ecdda2522a07af22495 100644
--- a/test/mjsunit/keyed-load-hole-to-undefined.js
+++ b/test/mjsunit/keyed-load-hole-to-undefined.js
@@ -3,13 +3,15 @@
// found in the LICENSE file.
// Flags: --allow-natives-syntax
-// Flags: --nostress-opt
+// Flags: --nostress-opt --no-always-opt
// --nostress-opt is specified because the test corrupts the "pristine"
// array prototype chain by storing an element, and this is tracked
// per-isolate. A subsequent stress run would send the load generic,
// and no more deoptimizations of foo would occur.
+assertFalse(isAlwaysOptimize());
+
function foo(a, i) { return a[i]; }
var a = ['one', , 'three'];

Powered by Google App Engine
This is Rietveld 408576698