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

Issue 284213002: dart2dart: Logical operators and related rewrite rules in dart_tree. (Closed)

Created:
6 years, 7 months ago by asgerf
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

dart2dart: Logical operators and related rewrite rules in dart_tree. BUG= R=kmillikin@google.com Committed: https://code.google.com/p/dart/source/detail?r=36356

Patch Set 1 #

Patch Set 2 : SVN rebase #

Patch Set 3 : Refined some rewriting rules. Added two test cases. #

Patch Set 4 : Flattening of nested ifs is now iterated. #

Total comments: 20

Patch Set 5 : Addressed comments + minor edits #

Patch Set 6 : Bugfix in iteration of tryCollapseIf #

Total comments: 1

Patch Set 7 : Test cases + name of statement rewriter in tracer #

Patch Set 8 : SVN rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+911 lines, -22 lines) Patch
M sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart View 1 2 3 4 5 14 chunks +594 lines, -17 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/tree_tracer.dart View 1 2 3 chunks +38 lines, -3 lines 0 comments Download
A tests/language/if_flatten1_test.dart View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
A tests/language/if_flatten2_test.dart View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A tests/language/logical_rewrite_test.dart View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
asgerf
Please nominate more reviewers if the pattern matching code is too dense.
6 years, 7 months ago (2014-05-15 12:42:11 UTC) #1
Kevin Millikin (Google)
I think there's a bug in some of the rewrites, but I might be missing ...
6 years, 7 months ago (2014-05-19 11:36:41 UTC) #2
asgerf
https://codereview.chromium.org/284213002/diff/60001/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart File sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart (right): https://codereview.chromium.org/284213002/diff/60001/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart#newcode622 sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree.dart:622: * Performs the following three transformations on the tree: ...
6 years, 7 months ago (2014-05-19 13:29:07 UTC) #3
Kevin Millikin (Google)
LGTM. https://codereview.chromium.org/284213002/diff/100001/tests/language/if_flatten1_test.dart File tests/language/if_flatten1_test.dart (right): https://codereview.chromium.org/284213002/diff/100001/tests/language/if_flatten1_test.dart#newcode10 tests/language/if_flatten1_test.dart:10: global = v; Now they look like four ...
6 years, 7 months ago (2014-05-20 11:09:00 UTC) #4
asgerf
6 years, 7 months ago (2014-05-20 13:13:40 UTC) #5
Message was sent while issue was closed.
Committed patchset #8 manually as r36356 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698