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

Unified Diff: test/mjsunit/array-literal-transitions.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/array-literal-feedback.js ('k') | test/mjsunit/array-push5.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-literal-transitions.js
diff --git a/test/mjsunit/array-literal-transitions.js b/test/mjsunit/array-literal-transitions.js
index 1af02d8d2f49a33c666a955aa676588c1ab5b4ce..ce46cb7a7c0d3ecb58d4b04668da9a4f6ce979b1 100644
--- a/test/mjsunit/array-literal-transitions.js
+++ b/test/mjsunit/array-literal-transitions.js
@@ -25,7 +25,8 @@
// (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 --expose-gc --ignition-osr
+// Flags: --allow-natives-syntax --expose-gc --ignition-osr --no-always-opt
+// Flags: --crankshaft
// IC and Crankshaft support for smi-only elements in dynamic array literals.
function get(foo) { return foo; } // Used to generate dynamic values.
@@ -188,9 +189,7 @@ assertEquals(foo, array[2]);
(function literals_after_osr() {
var color = [0];
- // Trigger OSR, if optimization is not disabled.
- if (%GetOptimizationStatus(literals_after_osr) != 4) {
- while (%GetOptimizationCount(literals_after_osr) == 0) {}
- }
+ // Trigger OSR.
+ while (%GetOptimizationCount(literals_after_osr) == 0) {}
return [color[0]];
})();
« no previous file with comments | « test/mjsunit/array-literal-feedback.js ('k') | test/mjsunit/array-push5.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698