|
|
Generate prettier loops.
Add structure information to HLoopInformation, and use it to generate prettier
loops when the condition can be generated as an expression.
If it can't, it still falls back to the while(true){if(!cond) break;} pattern.
Only handle for/while/for-in, not do-while yet.
Committed: https://code.google.com/p/dart/source/detail?r=6023
Total comments: 42
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+504 lines, -47 lines) |
Patch |
 |
M |
frog/leg/resolver.dart
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
frog/leg/scanner/listener.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
frog/leg/scanner/parser.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
frog/leg/ssa/builder.dart
|
View
|
1
|
10 chunks |
+35 lines, -8 lines |
0 comments
|
Download
|
 |
M |
frog/leg/ssa/codegen.dart
|
View
|
1
2
|
13 chunks |
+311 lines, -18 lines |
0 comments
|
Download
|
 |
M |
frog/leg/ssa/nodes.dart
|
View
|
1
2
|
9 chunks |
+50 lines, -6 lines |
0 comments
|
Download
|
 |
M |
frog/leg/tree/nodes.dart
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
frog/leg/tree/unparser.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
frog/leg/tree/visitors.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
frog/leg/typechecker.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
frog/tests/leg/src/LoopTest.dart
|
View
|
1
|
1 chunk |
+89 lines, -0 lines |
0 comments
|
Download
|
 |
M |
frog/tests/leg/src/mock_compiler.dart
|
View
|
1
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|