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

Issue 958603002: Added VariableUse expression to tree IR. (Closed)

Created:
5 years, 10 months ago by asgerf
Modified:
5 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Added VariableUse expression to tree IR. Variable is no longer an Expression. It must be referenced through a VariableUse. This makes it possible to reference a specific occurrence of a variable in the tree, which is useful for things like finding the first or last occurrence of a variable. BUG= R=kmillikin@google.com Committed: https://code.google.com/p/dart/source/detail?r=44125

Patch Set 1 #

Total comments: 16

Patch Set 2 : Comments #

Total comments: 2

Patch Set 3 : Rename fix #

Patch Set 4 : Rebase #

Patch Set 5 : Bugfix in copy propagation #

Patch Set 6 : Reference count catch parameters #

Patch Set 7 : Updated docs regarding catch parameters #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -98 lines) Patch
M pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart View 1 2 3 5 chunks +15 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/js_tree_builder.dart View 1 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/copy_propagator.dart View 1 2 3 4 6 chunks +24 lines, -18 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/logical_rewriter.dart View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart View 1 2 3 5 chunks +10 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 1 2 3 12 chunks +31 lines, -42 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 1 2 3 4 5 6 8 chunks +48 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
asgerf
https://codereview.chromium.org/958603002/diff/1/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart File pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart (right): https://codereview.chromium.org/958603002/diff/1/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart#newcode1244 pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart:1244: param.writeCount--; // Not a parameter anymore. This was technically ...
5 years, 10 months ago (2015-02-25 12:40:30 UTC) #2
Kevin Millikin (Google)
Nice. This basically LGTM but: I'm always a little uncomfortable when variables are treated the ...
5 years, 10 months ago (2015-02-26 12:43:18 UTC) #3
asgerf
And visitVariable is gone :) https://codereview.chromium.org/958603002/diff/1/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart File pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart (right): https://codereview.chromium.org/958603002/diff/1/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart#newcode835 pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart:835: BuilderContext<Statement> context) { On ...
5 years, 9 months ago (2015-02-27 12:05:19 UTC) #4
Kevin Millikin (Google)
Yay, thanks. I think there's a small bug noted below, otherwise LGTM. https://codereview.chromium.org/958603002/diff/1/pkg/compiler/lib/src/tree_ir/optimization/copy_propagator.dart File pkg/compiler/lib/src/tree_ir/optimization/copy_propagator.dart ...
5 years, 9 months ago (2015-02-27 12:17:19 UTC) #5
asgerf
https://codereview.chromium.org/958603002/diff/20001/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart File pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart (right): https://codereview.chromium.org/958603002/diff/20001/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart#newcode1250 pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart:1250: invalidateMovingAssignment(tree.Variable variable) { On 2015/02/27 12:17:18, kmillikin wrote: > ...
5 years, 9 months ago (2015-02-27 12:20:53 UTC) #6
asgerf
5 years, 9 months ago (2015-03-02 10:21:07 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 (id:110001) manually as 44125 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698