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

Side by Side Diff: tests/language/inline_in_for_initializer_and_bailout_test.dart

Issue 16004005: Fix generation of a bailout method when a BailoutTarget was in the middle of a loop/labeled block. … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/validate.dart ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import "package:expect/expect.dart";
6
7 var a = 42;
8
9 inlineMe() {
10 // Add control flow to confuse the compiler.
11 if (a is int) {
12 print('a is int');
13 }
14 return a[0];
15 }
16
17 main() {
18 a = [42];
19 // Make [main] recursive to force a bailout version.
20 if (false) main();
21 int i = 0;
22 for (i = inlineMe(); i < 42; i++);
23 Expect.equals(42, i);
24 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/validate.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698