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

Issue 1203423003: dart2js cps: Better fallthrough analysis and eliminate "return null". (Closed)

Created:
5 years, 6 months ago by asgerf
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js cps: Better fallthrough analysis and eliminate "return null". BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/e7e3706c597e7043113381673a9bf601c00153a6

Patch Set 1 #

Patch Set 2 : Remove linebreak #

Total comments: 6

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Register null constant when omitting "return null" #

Patch Set 6 : Update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -95 lines) Patch
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 6 chunks +49 lines, -31 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart View 1 2 4 chunks +119 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 1 chunk +36 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart View 1 2 3 4 5 12 chunks +0 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart View 1 2 3 4 5 5 chunks +0 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart View 1 2 3 4 5 5 chunks +0 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart View 1 2 3 4 5 5 chunks +2 lines, -8 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_literals_test.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart View 1 2 3 4 5 6 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
asgerf
5 years, 6 months ago (2015-06-25 14:20:55 UTC) #2
Kevin Millikin (Google)
lgtm https://codereview.chromium.org/1203423003/diff/20001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1203423003/diff/20001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode440 pkg/compiler/lib/src/js_backend/codegen/codegen.dart:440: bool thenMayComplete = (fallthrough.useCount > usesBefore); thenMayComplete seems ...
5 years, 6 months ago (2015-06-26 09:12:32 UTC) #3
asgerf
https://codereview.chromium.org/1203423003/diff/20001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1203423003/diff/20001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode440 pkg/compiler/lib/src/js_backend/codegen/codegen.dart:440: bool thenMayComplete = (fallthrough.useCount > usesBefore); On 2015/06/26 09:12:32, ...
5 years, 6 months ago (2015-06-26 10:52:30 UTC) #4
asgerf
5 years, 6 months ago (2015-06-26 12:14:17 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
e7e3706c597e7043113381673a9bf601c00153a6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698