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

Side by Side Diff: test/mjsunit/compiler/osr-maze1.js

Issue 1183123002: [mjsunit] Remove unsupported flag --turbo-deoptimization from tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/big-array-literal.js ('k') | test/mjsunit/compiler/osr-maze2.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --allow-natives-syntax --use-osr --turbo-deoptimization 5 // Flags: --allow-natives-syntax --use-osr
6 6
7 function bar(goal) { 7 function bar(goal) {
8 var count = 0; 8 var count = 0;
9 var sum = 11; 9 var sum = 11;
10 var i = 35; 10 var i = 35;
11 while (i-- > 33) { 11 while (i-- > 33) {
12 if (count++ == goal) %OptimizeOsr(); 12 if (count++ == goal) %OptimizeOsr();
13 sum = sum + i; 13 sum = sum + i;
14 } 14 }
15 while (i-- > 31) { 15 while (i-- > 31) {
(...skipping 26 matching lines...) Expand all
42 } 42 }
43 } 43 }
44 } 44 }
45 return sum; 45 return sum;
46 } 46 }
47 47
48 for (var i = 0; i < 13; i++) { 48 for (var i = 0; i < 13; i++) {
49 %DeoptimizeFunction(bar); 49 %DeoptimizeFunction(bar);
50 assertEquals(348, bar(i)); 50 assertEquals(348, bar(i));
51 } 51 }
OLDNEW
« no previous file with comments | « test/mjsunit/big-array-literal.js ('k') | test/mjsunit/compiler/osr-maze2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698