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

Issue 10513008: Fix super call invocation (issue 2028). (Closed)

Created:
8 years, 6 months ago by regis
Modified:
8 years, 6 months ago
Reviewers:
srdjan, hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix super call invocation (issue 2028). Committed: https://code.google.com/p/dart/source/detail?r=8633

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -44 lines) Patch
M runtime/vm/code_generator_ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 7 chunks +83 lines, -30 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 chunks +5 lines, -12 lines 0 comments Download
A tests/language/super_call4_test.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
regis
This is not fixing all the issues with super, but it is a start. This ...
8 years, 6 months ago (2012-06-04 18:16:40 UTC) #1
hausner
lgtm. Thank you for doing this!
8 years, 6 months ago (2012-06-04 18:22:26 UTC) #2
srdjan
LGTM http://codereview.chromium.org/10513008/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): http://codereview.chromium.org/10513008/diff/1/runtime/vm/parser.cc#newcode1231 runtime/vm/parser.cc:1231: super_func = ResolveDynamicFunction(super_class, no_such_method_name); Is it specified whose ...
8 years, 6 months ago (2012-06-04 23:31:07 UTC) #3
regis
8 years, 6 months ago (2012-06-13 22:15:49 UTC) #4
Thanks!

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

http://codereview.chromium.org/10513008/diff/1/runtime/vm/parser.cc#newcode1231
runtime/vm/parser.cc:1231: super_func = ResolveDynamicFunction(super_class,
no_such_method_name);
On 2012/06/04 23:31:07, srdjan wrote:
> Is it specified whose noSuchMethod should be invoked: the one of the class or
of
> its super class? Please add a test for that.

It must be resolved in the super class, which we do correctly. I added a
language test super_call4_test.dart.

http://codereview.chromium.org/10513008/diff/1/runtime/vm/parser.cc#newcode1265
runtime/vm/parser.cc:1265: ArgumentListNode* function_args) {
On 2012/06/04 23:31:07, srdjan wrote:
> const ArgumentListNode&

Done.

Powered by Google App Engine
This is Rietveld 408576698