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

Issue 914303006: Fix yield statements in catch blocks (Closed)

Created:
5 years, 10 months ago by hausner
Modified:
5 years, 10 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix yield statements in catch blocks This is a partial fix for issue 22300. The VM no longer setfaults when using yield in try statements. Yield in catch blocks work. What’s still not working right is if a value is yielded before an exception is propagated to the caller. R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=43707

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -25 lines) Patch
M runtime/vm/parser.cc View 1 10 chunks +48 lines, -25 lines 0 comments Download
M tests/language/language.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +2 lines, -0 lines 0 comments Download
A tests/language/sync_generator3_test.dart View 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
hausner
5 years, 10 months ago (2015-02-11 23:34:20 UTC) #2
regis
LGTM https://codereview.chromium.org/914303006/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/914303006/diff/1/runtime/vm/parser.cc#newcode5982 runtime/vm/parser.cc:5982: // This should always be true here. Add ...
5 years, 10 months ago (2015-02-11 23:53:45 UTC) #3
hausner
Committed patchset #2 (id:20001) manually as r43707 (presubmit successful).
5 years, 10 months ago (2015-02-12 00:12:18 UTC) #5
hausner
5 years, 10 months ago (2015-02-12 00:18:50 UTC) #6
Message was sent while issue was closed.
Thank you.

https://codereview.chromium.org/914303006/diff/1/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

https://codereview.chromium.org/914303006/diff/1/runtime/vm/parser.cc#newcode...
runtime/vm/parser.cc:5982: // This should always be true here.
On 2015/02/11 23:53:44, regis wrote:
> Add a TODO if you want to revisit this code. Otherwise, remove the if
statement
> that duplicates the assert.

Removed the if. The assertion never fired in our tests.

Powered by Google App Engine
This is Rietveld 408576698