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

Issue 10695143: Move handleLogicalAndOr to the SsaBranchBuilder. (Closed)

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

Description

Move handleLogicalAndOr to the SsaBranchBuilder. Committed: https://code.google.com/p/dart/source/detail?r=9586

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -52 lines) Patch
M lib/compiler/implementation/ssa/builder.dart View 3 chunks +54 lines, -52 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
8 years, 5 months ago (2012-07-11 12:44:07 UTC) #1
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10695143/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/10695143/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode3489 lib/compiler/implementation/ssa/builder.dart:3489: } Could be shorter by using the stack ...
8 years, 5 months ago (2012-07-12 07:18:25 UTC) #2
floitsch
8 years, 5 months ago (2012-07-12 09:23:30 UTC) #3
https://chromiumcodereview.appspot.com/10695143/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/10695143/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/builder.dart:3489: }
On 2012/07/12 07:18:26, Lasse Reichstein Nielsen wrote:
> Could be shorter by using the stack more:
> void visitCondition() {
>  left();
>  boolifiedLeft = builder.popBoolified();
>  builder.stack.add(boolifiedLeft);
>  if (isAnd) {
>    builder.push(new HNot(builder.pop());
>  }
> }
>  
Agreed, but in this CL I'm not going to change any code (unless necessary for it
to work in the new location).

Powered by Google App Engine
This is Rietveld 408576698