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

Issue 10511007: Make HBreak and HContinue not extend HGoto. They now extend HJump which is independent of HGoto. To… (Closed)

Created:
8 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 6 months ago
Reviewers:
karlklose, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make HBreak and HContinue not extend HGoto. They now extend HJump which is independent of HGoto. Too many errors have occured due to HGoto having sub-classes, so checking if something is HGoto isn't enough. Committed: https://code.google.com/p/dart/source/detail?r=8318

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -15 lines) Patch
M lib/compiler/implementation/ssa/builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 2 chunks +2 lines, -4 lines 2 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 3 chunks +15 lines, -10 lines 0 comments Download
M lib/compiler/implementation/ssa/validate.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
8 years, 6 months ago (2012-06-04 12:30:59 UTC) #1
Lasse Reichstein Nielsen
ping.
8 years, 6 months ago (2012-06-06 08:13:04 UTC) #2
karlklose
LGTM.
8 years, 6 months ago (2012-06-06 08:53:15 UTC) #3
ngeoffray
LGTM! http://codereview.chromium.org/10511007/diff/1/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): http://codereview.chromium.org/10511007/diff/1/lib/compiler/implementation/ssa/codegen.dart#newcode1242 lib/compiler/implementation/ssa/codegen.dart:1242: return false; one line?
8 years, 6 months ago (2012-06-06 11:05:29 UTC) #4
Lasse Reichstein Nielsen
8 years, 6 months ago (2012-06-06 13:04:07 UTC) #5
http://codereview.chromium.org/10511007/diff/1/lib/compiler/implementation/ss...
File lib/compiler/implementation/ssa/codegen.dart (right):

http://codereview.chromium.org/10511007/diff/1/lib/compiler/implementation/ss...
lib/compiler/implementation/ssa/codegen.dart:1242: return false;
NEVER!
Ahem.

I'd actually rather combine it with the test above, and keep the block. 
I don't like hiding early returns at the end of innocuously looking lines.

Powered by Google App Engine
This is Rietveld 408576698