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

Issue 10693143: Refactor SsaBranchBuilder. (Closed)

Created:
8 years, 5 months ago by floitsch
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactor SsaBranchBuilder. Committed: https://code.google.com/p/dart/source/detail?r=9549

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -111 lines) Patch
M lib/compiler/implementation/ssa/builder.dart View 1 5 chunks +114 lines, -111 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
8 years, 5 months ago (2012-07-11 11:52:29 UTC) #1
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10693143/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/10693143/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode3437 lib/compiler/implementation/ssa/builder.dart:3437: /** Returns true if the locals have been ...
8 years, 5 months ago (2012-07-11 12:10:53 UTC) #2
floitsch
8 years, 5 months ago (2012-07-11 12:24:19 UTC) #3
https://chromiumcodereview.appspot.com/10693143/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/10693143/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/builder.dart:3437: /** Returns true if the
locals have been copied. */
On 2012/07/11 12:10:53, Lasse Reichstein Nielsen wrote:
> What does it mean to "have been copied"?
> Can we use the originals again, or can't we? I'm *guessing* that "have been
> copied" means that the original is free to be reused.
> 
> Generally, the "copy" word doesn't carry much meaning, it's referring to a
> technical thing we do in some cases, but not to why we do it or what it means.
> Is there a better term?
> E.g., this function returns true if the fromBranch's exitLocals have not been
> modified or stored, so they are free to reuse.
> The "needsCopy" could be reversed to "mayReuse" with a comment that it refers
to
> fromBranch.exitLocals. And the return value can be reversed to mean "did
reuse".

Did not change the return type, but inverted the argument. Now
"mayReuseFromLocals".

https://chromiumcodereview.appspot.com/10693143/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/builder.dart:3438: bool mergeLocals(SsaBranch
fromBranch, SsaBranch toBranch, [needsCopy]) {
On 2012/07/11 12:10:53, Lasse Reichstein Nielsen wrote:
> Type 'bool' on needsCopy.

Done.

Powered by Google App Engine
This is Rietveld 408576698