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

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

Issue 1007103003: cps-ir: Merge variables based on set-based liveness and graph coloring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Missed a few comments Created 5 years, 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2015, 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 @AssumeDynamic @NoInline
8 foo() => 1;
9
10 @AssumeDynamic @NoInline
11 throwException() => throw 'x';
12
13 main() {
14 var x = 10;
15 var e2 = null;
16 try {
17 var t = foo();
18 throwException();
19 print(t);
20 x = 3;
21 } catch(e) {
22 Expect.equals(10, x);
23 e2 = e;
24 }
25 Expect.equals(10, x);
26 Expect.equals('x', e2);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698