|
Implement try/finally by inlining the finally code.
Try/finally is implemented by inlining. There is a try/catch to catch
exceptions in the try block. The catch body contains the finally code
followed by a rethrow. The code for finally is translated again after the
normal exit of the try block. Break, continue, and return exits in the try
block have the finally code inlined just before the exit is taken.
Try/catch/finally is not yet supported, it requires some changes to the
assigned variables analysis.
R=asgerf@google.com
Committed: https://github.com/dart-lang/sdk/commit/089ed2965bb7d6ae6a5e8134a67f8a3889b0c6e4
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1182 lines, -2086 lines) |
Patch |
|
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
View
|
1
2
3
4
|
18 chunks |
+307 lines, -174 lines |
0 comments
|
Download
|
|
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/pkg.status
|
View
|
1
2
3
4
|
1 chunk |
+42 lines, -41 lines |
0 comments
|
Download
|
|
M |
samples/samples.status
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/benchmark_smoke/benchmark_smoke.status
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/co19/co19-dart2js.status
|
View
|
1
2
3
|
6 chunks |
+403 lines, -1338 lines |
0 comments
|
Download
|
|
M |
tests/compiler/dart2js_extra/dart2js_extra.status
|
View
|
1
2
3
4
|
3 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
|
M |
tests/compiler/dart2js_native/dart2js_native.status
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/corelib/corelib.status
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/html/html.status
|
View
|
1
2
3
4
|
2 chunks |
+78 lines, -78 lines |
0 comments
|
Download
|
|
M |
tests/isolate/isolate.status
|
View
|
|
1 chunk |
+54 lines, -59 lines |
0 comments
|
Download
|
|
M |
tests/language/language_dart2js.status
|
View
|
1
2
3
4
|
8 chunks |
+53 lines, -76 lines |
0 comments
|
Download
|
|
M |
tests/lib/lib.status
|
View
|
|
12 chunks |
+164 lines, -168 lines |
0 comments
|
Download
|
|
M |
tests/standalone/standalone.status
|
View
|
|
3 chunks |
+51 lines, -124 lines |
0 comments
|
Download
|
|
M |
tests/utils/utils.status
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 7 (1 generated)
|