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

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

Issue 2478323002: [compiler] Fix flipped boolean checks in marked tier-up (Closed)
Patch Set: Add some regression tests Created 4 years, 1 month 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 | « src/compiler.cc ('k') | test/mjsunit/shared-function-tier-up-ignition.js » ('j') | 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 --no-igniti on-staging --no-turbo
rmcilroy 2016/11/07 10:17:46 This is not really default since it's --no-ignitio
Leszek Swirski 2016/11/11 10:13:29 I tried putting this in a single test, but it ende
6
7 (function f() {
8 var sum = 0;
9 var i = 0;
10 for (var i = 0; i < 3; ++i) {
11 var g = function(x) {
12 return 2 * x;
13 }
14 sum += g(i);
15
16 if (i == 1) {
17 // Run twice (i = 0, 1), then tier-up.
18 %OptimizeFunctionOnNextCall(g);
19 } else if (i == 2) {
20 // Tier-up at i = 2 should go up to crankshaft.
21 assertEquals(1, %GetOptimizationStatus(g));
22 }
23 }
24 })()
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/shared-function-tier-up-ignition.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698