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

Unified Diff: test/mjsunit/never-optimize.js

Issue 19807002: Turn on parallel recompilation for tests that assert optimization status. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix small details. no logic change. Created 7 years, 5 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/mjsunit.js ('k') | test/mjsunit/parallel-initial-prototype-change.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/never-optimize.js
diff --git a/test/mjsunit/never-optimize.js b/test/mjsunit/never-optimize.js
index 06885abb925d6fa2f6265b9346db1d91f5b381ad..55b1f11981891a70fe01a4c25f55176416fd1a0b 100644
--- a/test/mjsunit/never-optimize.js
+++ b/test/mjsunit/never-optimize.js
@@ -37,10 +37,7 @@ if (%GetOptimizationStatus(o1) != 4) {
o1();
// Check that the given function was optimized.
- var o1_status = %GetOptimizationStatus(o1);
- assertTrue(o1_status == 1 // optimized
- || o1_status == 3 // optimized (always opt)
- || o1_status == 5); // lazy recompile requested
+ assertOptimized(o1);
// Test the %NeverOptimizeFunction runtime call.
%NeverOptimizeFunction(u1);
@@ -61,6 +58,6 @@ if (%GetOptimizationStatus(o1) != 4) {
u2(); u2();
// 2 => not optimized.
- assertTrue(%GetOptimizationStatus(u1) == 2);
- assertFalse(%GetOptimizationStatus(u2) == 2);
+ assertUnoptimized(u1);
+ assertOptimized(u2);
}
« no previous file with comments | « test/mjsunit/mjsunit.js ('k') | test/mjsunit/parallel-initial-prototype-change.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698