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

Issue 1037183003: Add the implicit return in the correct sequence node (Closed)

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

Description

Add the implicit return in the correct sequence node Make sure we add the implicit return node into the sequence node that contains the function’s code. Previously, we added the implicit return in the outermost sequence. If the outermost sequence is at a different context level than the sequence that contains the function’s code, the debugger cannot access the captured variables when stopped at the return statement. R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=44826

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -22 lines) Patch
M runtime/vm/parser.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 4 chunks +17 lines, -22 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
hausner
5 years, 8 months ago (2015-03-31 18:09:47 UTC) #2
regis
Sorry, but I do not like that the return statement is inserted as a side ...
5 years, 8 months ago (2015-03-31 18:44:41 UTC) #3
hausner
I moved the code that adds the return node out of the static function Parser::ParseFunction() ...
5 years, 8 months ago (2015-03-31 19:45:59 UTC) #4
regis
On 2015/03/31 19:45:59, hausner wrote: > I moved the code that adds the return node ...
5 years, 8 months ago (2015-03-31 20:38:00 UTC) #5
hausner
PTAL I think I addressed your comments and suggestions. I like this version better, too.
5 years, 8 months ago (2015-03-31 21:36:24 UTC) #6
regis
LGTM Much better, indeed. Thanks!
5 years, 8 months ago (2015-03-31 21:49:03 UTC) #7
hausner
5 years, 8 months ago (2015-03-31 22:11:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as r44826 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698