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

Issue 2349593003: Support generic method syntax (fixes #25869). (Closed)

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

Description

Support generic method syntax (fixes #25869). Function type parameters are parsed and resolved, but mapped to malformed types (i.e. dynamic) until full support is implemented. R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/11562f687433201e25fdb24842864cf0ccf42d98

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -235 lines) Patch
M runtime/vm/class_finalizer.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 4 chunks +33 lines, -0 lines 2 comments Download
M runtime/vm/object.cc View 8 chunks +75 lines, -2 lines 2 comments Download
M runtime/vm/parser.h View 4 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 1 52 chunks +369 lines, -224 lines 2 comments Download
M runtime/vm/raw_object.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/symbols.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
regis
Matthias, Siva, For now, I have added a new field to Function in order to ...
4 years, 3 months ago (2016-09-16 01:12:51 UTC) #2
hausner
LGTM. Nicely integrated. https://codereview.chromium.org/2349593003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/2349593003/diff/1/runtime/vm/parser.cc#newcode5447 runtime/vm/parser.cc:5447: void Parser::ParseTypeParameters(bool parameterizing_class) { Would it ...
4 years, 3 months ago (2016-09-19 20:28:48 UTC) #3
regis
Thanks! I also resolved the issue of a mixin application defined across libraries. https://codereview.chromium.org/2349593003/diff/1/runtime/vm/parser.cc File ...
4 years, 3 months ago (2016-09-19 22:02:30 UTC) #4
regis
Committed patchset #2 (id:20001) manually as 11562f687433201e25fdb24842864cf0ccf42d98 (presubmit successful).
4 years, 3 months ago (2016-09-19 22:17:37 UTC) #6
siva
DBC. https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.cc#newcode5897 runtime/vm/object.cc:5897: Function& function = thread->FunctionHandle(); REUSABLE_FUNCTION_HANDLESCOPE(thread); needed here as ...
4 years, 3 months ago (2016-09-19 23:23:46 UTC) #7
regis
4 years, 3 months ago (2016-09-23 00:35:24 UTC) #8
Message was sent while issue was closed.
I forgot to send these replies to Siva's comments.
They have been addressed in this cl committed 2 days ago:
https://codereview.chromium.org/2359543003/

https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.cc#ne...
runtime/vm/object.cc:5897: Function& function = thread->FunctionHandle();
On 2016/09/19 23:23:46, siva wrote:
> REUSABLE_FUNCTION_HANDLESCOPE(thread);
> 
> needed here as thread->FunctionHandle() is being used.

Done.

https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.h
File runtime/vm/object.h (right):

https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/object.h#new...
runtime/vm/object.h:2301: }
On 2016/09/19 23:23:46, siva wrote:
> Do we really want this version of NumTypeParmeters? it seems to be used in
only
> one place IsGeneric, why not pass Thread::Current() there. That way it would
> avoid future use without the thread argument.
> 
> We are planning on similarly getting rid of the Handle() without the zone
> parameter but it is taking forever as more new code keeps getting added.

Done.

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

https://codereview.chromium.org/2349593003/diff/20001/runtime/vm/parser.cc#ne...
runtime/vm/parser.cc:2147: signature_function.set_data(Object::Handle());
On 2016/09/19 23:23:46, siva wrote:
> Handle(Z) possible here?

Done.

Powered by Google App Engine
This is Rietveld 408576698