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

Issue 23038010: Fix Function.end_token_pos() and implement MethodMirror.source getter (Closed)

Created:
7 years, 4 months ago by Michael Lippautz (Google)
Modified:
7 years, 3 months ago
Reviewers:
gbracha, siva, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org, rmacnak
Visibility:
Public.

Description

Fix Function.end_token_pos() and implement MethodMirror.source getter. Move .source getter from ClosureMirror to MethodMirror (as the TODO already suggested) and provide an implementation. BUG= R=asiva@google.com, hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=26659

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : Addressed comments #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -146 lines) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 2 chunks +84 lines, -84 lines 0 comments Download
M runtime/vm/intrinsifier.h View 1 2 3 4 5 2 chunks +48 lines, -48 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 10 chunks +19 lines, -5 lines 0 comments Download
M sdk/lib/mirrors/mirrors.dart View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A tests/lib/mirrors/method_mirror_source_test.dart View 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Michael Lippautz (Google)
assert(), script.GetSnippet(), and script.GetTokenLocation() are not affected by this change, since they're doing the right ...
7 years, 4 months ago (2013-08-19 21:28:14 UTC) #1
hausner
Something is wrong with this change. All diffs appear empty when I click the "View" ...
7 years, 4 months ago (2013-08-19 23:00:48 UTC) #2
Michael Lippautz (Google)
Strange... I reuploaded the exact same changes and now the diffs seem to work.
7 years, 4 months ago (2013-08-19 23:52:36 UTC) #3
gbracha
Spec change is as intended.
7 years, 4 months ago (2013-08-19 23:57:30 UTC) #4
hausner
See comments in parser.cc As we discussed offline, you are correct that TokenPos()-1 is not ...
7 years, 4 months ago (2013-08-20 17:49:44 UTC) #5
Michael Lippautz (Google)
Addressed comments and adjusted end tokens we get from diet parsing. > As we discussed ...
7 years, 4 months ago (2013-08-21 16:50:03 UTC) #6
hausner
LGTM.
7 years, 4 months ago (2013-08-21 20:32:24 UTC) #7
siva
https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc#newcode1297 runtime/lib/mirrors.cc:1297: // (3) "var foo = () => null": End ...
7 years, 4 months ago (2013-08-21 22:21:05 UTC) #8
siva
https://codereview.chromium.org/23038010/diff/14002/tests/lib/lib.status File tests/lib/lib.status (right): https://codereview.chromium.org/23038010/diff/14002/tests/lib/lib.status#newcode22 tests/lib/lib.status:22: mirrors/method_mirror_source_test : Fail # Issue 6490 Will your test ...
7 years, 4 months ago (2013-08-21 22:31:54 UTC) #9
Michael Lippautz (Google)
Thanks! https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc#newcode1297 runtime/lib/mirrors.cc:1297: // (3) "var foo = () => null": ...
7 years, 4 months ago (2013-08-21 23:19:20 UTC) #10
siva
lgtm https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/23038010/diff/18001/runtime/lib/mirrors.cc#newcode1299 runtime/lib/mirrors.cc:1299: if ((tkit.CurrentTokenKind() == Token::kCOMMA) || // (1) Maybe ...
7 years, 4 months ago (2013-08-26 02:31:27 UTC) #11
Michael Lippautz (Google)
7 years, 3 months ago (2013-08-26 17:14:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 manually as r26659 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698