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

Side by Side Diff: test/mjsunit/shared-function-tier-up-default.js

Issue 2715153005: Remove shared-function-tier-up-default.js (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Flags: --mark-shared-functions-for-tier-up --allow-natives-syntax
6 // Flags: --no-ignition --no-ignition-staging --no-turbo
7 // Flags: --crankshaft --no-always-opt
8
9 // If we are always or never optimizing it is useless.
10 assertFalse(isAlwaysOptimize());
11 assertFalse(isNeverOptimize());
12
13 (function() {
14 var sum = 0;
15 var i = 0;
16 for (var i = 0; i < 3; ++i) {
17 var f = function(x) {
18 return 2 * x;
19 }
20 sum += f(i);
21
22 if (i == 1) {
23 // f must be baseline code.
24 assertTrue(isBaselined(f));
25
26 // Run twice (i = 0, 1), then tier-up.
27 %OptimizeFunctionOnNextCall(f);
28 } else if (i == 2) {
29 // Tier-up at i = 2 should go up to crankshaft.
30 assertTrue(isCrankshafted(f));
31 }
32 }
33 })()
OLDNEW
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698