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

Issue 2727803002: Fix setting breakpoint setting in await statements (Closed)

Created:
3 years, 9 months ago by hausner
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix setting breakpoint setting in await statements CL https://codereview.chromium.org/2626753002 introduced a “real” token position for the synthetic code that re-throws an exception returned by an await’ed expression. This interferes with setting a breakpoint in a line that contains an await, since the synthetic code happens to be at the lowest compiled code address and will thus be picked as the breakpoint location. This CL makes the re-throw a synthetic token position again, but includes synthetic token positions in stack traces. This is an alternative fix for bug #28325. BUG=#28770 R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/408a64756e166b884840482194600169d39784fb

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -31 lines) Patch
M runtime/vm/ast_transformer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/debugger.cc View 5 chunks +12 lines, -16 lines 0 comments Download
M runtime/vm/flow_graph_builder_test.cc View 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/vm/profiler_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/source_report.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/token_position.h View 1 chunk +5 lines, -3 lines 2 comments Download

Messages

Total messages: 9 (4 generated)
hausner
John may have an opinion on the changes to class TokenPosition.
3 years, 9 months ago (2017-03-02 01:15:02 UTC) #4
Florian Schneider
Lgtm! https://codereview.chromium.org/2727803002/diff/1/runtime/vm/token_position.h File runtime/vm/token_position.h (right): https://codereview.chromium.org/2727803002/diff/1/runtime/vm/token_position.h#newcode137 runtime/vm/token_position.h:137: bool IsSourcePosition() const { return IsReal() || IsSynthetic(); ...
3 years, 9 months ago (2017-03-02 02:44:13 UTC) #5
hausner
Thanks https://codereview.chromium.org/2727803002/diff/1/runtime/vm/token_position.h File runtime/vm/token_position.h (right): https://codereview.chromium.org/2727803002/diff/1/runtime/vm/token_position.h#newcode137 runtime/vm/token_position.h:137: bool IsSourcePosition() const { return IsReal() || IsSynthetic(); ...
3 years, 9 months ago (2017-03-02 06:14:00 UTC) #6
hausner
Committed patchset #1 (id:1) manually as 408a64756e166b884840482194600169d39784fb (presubmit successful).
3 years, 9 months ago (2017-03-02 20:21:48 UTC) #8
Cutch
3 years, 9 months ago (2017-03-06 16:47:16 UTC) #9
Message was sent while issue was closed.
On 2017/03/02 20:21:48, hausner wrote:
> Committed patchset #1 (id:1) manually as
> 408a64756e166b884840482194600169d39784fb (presubmit successful).

LGTM but it would be nice if a service test as added based on the bug report so
we can catch regressions.

Powered by Google App Engine
This is Rietveld 408576698