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

Issue 9720024: If there were breaks in a loop, we must not restore the saved localsHandler before entering the loo… (Closed)

Created:
8 years, 9 months ago by ngeoffray
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, karlklose, ahe, kasperl
Visibility:
Public.

Description

If there were breaks in a loop, we must not restore the saved localsHandler before entering the loop body. Committed: https://code.google.com/p/dart/source/detail?r=5619

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -12 lines) Patch
M frog/leg/ssa/builder.dart View 1 5 chunks +8 lines, -7 lines 0 comments Download
M tests/co19/co19-leg.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/corelib/corelib-leg.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/language/language-leg.status View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
ngeoffray
8 years, 9 months ago (2012-03-17 18:13:09 UTC) #1
floitsch
LGTM. I think it is more correct to not use the (current) localsHandler when exiting ...
8 years, 9 months ago (2012-03-17 22:25:00 UTC) #2
Lasse Reichstein Nielsen
LGTM
8 years, 9 months ago (2012-03-17 23:19:02 UTC) #3
ngeoffray
8 years, 9 months ago (2012-03-18 12:03:45 UTC) #4
Thanks Lasse and Florian.

https://chromiumcodereview.appspot.com/9720024/diff/1/frog/leg/ssa/builder.dart
File frog/leg/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/9720024/diff/1/frog/leg/ssa/builder.da...
frog/leg/ssa/builder.dart:1055: breakLocals.add(localsHandler);
On 2012/03/17 22:25:00, floitsch wrote:
> add(savedLocals);

Thanks for the suggestion. Done.

https://chromiumcodereview.appspot.com/9720024/diff/1/frog/leg/ssa/builder.da...
frog/leg/ssa/builder.dart:1172: endLoop(loopEntryBlock, conditionBlock,
breakHandler, null);
On 2012/03/17 22:25:00, floitsch wrote:
> localsHandler

Done.

Powered by Google App Engine
This is Rietveld 408576698