|
|
dart2dart: Implementation of simple try/catch.
A LetHandler form is introduced to the CPS IR. It binds an exception
handler continuation which is in scope for its body. LetHandler is
translated to try/catch when translating back to direct style.
Optimizations in the CPS and Tree languages that move code have to be
careful when moving code into or out of the scope of an exception
handler. This change prohibits such code motion, though it might be
sometimes provably safe.
BUG=
R=asgerf@google.com, karlklose@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44047
Total comments: 48
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+620 lines, -76 lines) |
Patch |
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
View
|
1
|
10 chunks |
+99 lines, -9 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart
|
View
|
1
|
5 chunks |
+204 lines, -13 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
View
|
1
|
4 chunks |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
|
View
|
|
2 chunks |
+25 lines, -5 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart
|
View
|
1
|
3 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
View
|
1
|
4 chunks |
+25 lines, -6 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
View
|
1
|
4 chunks |
+29 lines, -5 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/type_propagation.dart
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart
|
View
|
1
|
4 chunks |
+34 lines, -2 lines |
2 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/dart_backend/backend_ast_nodes.dart
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
|
View
|
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/js_backend/codegen/codegen.dart
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/optimization/copy_propagator.dart
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
|
View
|
1
|
4 chunks |
+23 lines, -2 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
|
View
|
1
|
4 chunks |
+31 lines, -3 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
|
View
|
1
|
4 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/use_unused_api.dart
|
View
|
1
|
2 chunks |
+2 lines, -17 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_dart2js.status
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 14 (2 generated)
|