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

Issue 2301293002: kernel -> ssa: implement if-statements (Closed)

Created:
4 years, 3 months ago by Harry Terkelsen
Modified:
4 years, 3 months ago
CC:
reviews_dartlang.org, dart-kernel+reviews_google.com, sra1
Target Ref:
refs/heads/master
Visibility:
Public.

Description

kernel -> ssa: implement if-statements As part of this change I refactored SsaBranchBuilder to accept a GraphBuilder argument so that it can work with the new kernel builder. I also had to add a LocalsHandler accessor to the GraphBuilder. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/7502743614fcf22a943923f090f52736b45398ea

Patch Set 1 #

Total comments: 15

Patch Set 2 : fix imports, add comment header #

Patch Set 3 : move handleLogicalAndOrWithLeftNode to SsaBuilder #

Patch Set 4 : rename to handleLogicalBinary, move doc comments #

Patch Set 5 : add visitNot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -294 lines) Patch
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 4 15 chunks +62 lines, -268 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder_kernel.dart View 1 2 3 4 6 chunks +36 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/ssa/graph_builder.dart View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/locals_handler.dart View 1 2 17 chunks +24 lines, -22 lines 0 comments Download
A pkg/compiler/lib/src/ssa/ssa_branch_builder.dart View 1 2 3 1 chunk +229 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/dart2js.status View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/kernel/control_flow_test.dart View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Harry Terkelsen
4 years, 3 months ago (2016-09-01 23:19:22 UTC) #2
Siggi Cherem (dart-lang)
sweet! some comments below https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/builder.dart File pkg/compiler/lib/src/ssa/builder.dart (right): https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/builder.dart#newcode2593 pkg/compiler/lib/src/ssa/builder.dart:2593: void handleLogicalOrWithLeftNode(ast.Node left, void visitRight()) ...
4 years, 3 months ago (2016-09-01 23:51:22 UTC) #3
Harry Terkelsen
Thanks, Siggi! https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/builder.dart File pkg/compiler/lib/src/ssa/builder.dart (right): https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/builder.dart#newcode2593 pkg/compiler/lib/src/ssa/builder.dart:2593: void handleLogicalOrWithLeftNode(ast.Node left, void visitRight()) { On ...
4 years, 3 months ago (2016-09-02 17:52:28 UTC) #4
Siggi Cherem (dart-lang)
lgtm, thanks harry! https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart File pkg/compiler/lib/src/ssa/ssa_branch_builder.dart (right): https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart#newcode134 pkg/compiler/lib/src/ssa/ssa_branch_builder.dart:134: void handleLogicalAndOr(void left(), void right(), {bool ...
4 years, 3 months ago (2016-09-02 17:56:37 UTC) #5
Harry Terkelsen
On 2016/09/02 17:56:37, Siggi Cherem (dart-lang) wrote: > lgtm, thanks harry! > > https://codereview.chromium.org/2301293002/diff/1/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart > ...
4 years, 3 months ago (2016-09-02 18:12:44 UTC) #6
Harry Terkelsen
PTAL Siggi, I had to disable the binary_operators_test since we now are compiling 'if' statements ...
4 years, 3 months ago (2016-09-02 18:31:01 UTC) #7
Siggi Cherem (dart-lang)
lgtm
4 years, 3 months ago (2016-09-02 18:32:15 UTC) #8
Harry Terkelsen
4 years, 3 months ago (2016-09-02 18:32:58 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
7502743614fcf22a943923f090f52736b45398ea (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698