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

Unified Diff: test/mjsunit/es6/block-scoping-sloppy.js

Issue 2653753007: [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). (Closed)
Patch Set: Addressing comments 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
« no previous file with comments | « test/mjsunit/es6/block-scoping.js ('k') | test/mjsunit/field-type-tracking.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/block-scoping-sloppy.js
diff --git a/test/mjsunit/es6/block-scoping-sloppy.js b/test/mjsunit/es6/block-scoping-sloppy.js
index f5c5a6326b393f2c0814b41902044ffba1c0b002..29eadb17d14a32154853f1af02497ef897d620c8 100644
--- a/test/mjsunit/es6/block-scoping-sloppy.js
+++ b/test/mjsunit/es6/block-scoping-sloppy.js
@@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --crankshaft
// Test functionality of block scopes.
// Hoisting of var declarations.
@@ -40,7 +40,7 @@ function f1() {
for (var j = 0; j < 5; ++j) f1();
%OptimizeFunctionOnNextCall(f1);
f1();
-assertTrue(%GetOptimizationStatus(f1) != 2);
+assertOptimized(f1);
// Dynamic lookup in and through block contexts.
function f2(one) {
« no previous file with comments | « test/mjsunit/es6/block-scoping.js ('k') | test/mjsunit/field-type-tracking.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698