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

Issue 1311403003: dart2js cps: Track existence of try statements in resolution instead of traversing AST/IR nodes to … (Closed)

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

Description

dart2js cps: Track existence of try statements in resolution instead of traversing AST/IR nodes to check for it. This change removes one traversal in the backend and it is one step in the direction of recording more inforamtion in resolution; the compuation of DartCapturedVariables, for example, could also be done during resolution and stored in the TreeElements. The disadvantage is that resolution may look at more code than TypePropagation, but in this specific case I do not think that we are realisticly able to eliminate try statements in functions that are small enough to be inlined. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/4f8047af3bebc156bb1437e110f272d5a37987c0

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -35 lines) Patch
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 4 chunks +7 lines, -30 lines 1 comment Download
M pkg/compiler/lib/src/resolution/members.dart View 1 chunk +4 lines, -0 lines 1 comment Download
M pkg/compiler/lib/src/resolution/tree_elements.dart View 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
karlklose
5 years, 3 months ago (2015-09-04 12:52:35 UTC) #1
Kevin Millikin (Google)
lgtm https://codereview.chromium.org/1311403003/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right): https://codereview.chromium.org/1311403003/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode1854 pkg/compiler/lib/src/cps_ir/type_propagation.dart:1854: if (node.target.resolvedAst.elementd.containsTryStatement) return false; Typo: elementd ==> elements. ...
5 years, 3 months ago (2015-09-07 09:11:17 UTC) #2
karlklose
5 years, 3 months ago (2015-09-08 09:08:25 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4f8047af3bebc156bb1437e110f272d5a37987c0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698