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

Issue 2571363002: fixes #27385, implement virtual fields in DDC (Closed)

Created:
4 years ago by Jennifer Messerly
Modified:
4 years ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #27385, implement virtual fields in DDC If a field is marked @virtual in Analyzer, DDC will allow it to be overridden as well also fixes #28114, abstract getters/setters broke generation of forwarding getters/setters R=vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/77f53f609fd5dad2d5aa3bf6e69df0aadeea360e

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : fix #

Patch Set 4 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -178 lines) Patch
M pkg/dev_compiler/lib/js/amd/dart_sdk.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/lib/js/common/dart_sdk.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/lib/js/es6/dart_sdk.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/lib/js/legacy/dart_sdk.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
A pkg/dev_compiler/lib/src/compiler/class_property_model.dart View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/code_generator.dart View 1 2 16 chunks +54 lines, -77 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/element_helpers.dart View 1 2 3 3 chunks +20 lines, -1 line 0 comments Download
D pkg/dev_compiler/lib/src/compiler/js_field_storage.dart View 1 chunk +0 lines, -66 lines 0 comments Download
M pkg/dev_compiler/test/browser/language_tests.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/dev_compiler/test/not_yet_strong_tests.dart View 1 9 chunks +0 lines, -13 lines 0 comments Download
A tests/language_strong/abstract_getter2_test.dart View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M tests/language_strong/closure_with_super_field_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/language_strong/field_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M tests/language_strong/getter_override2_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/language_strong/getters_setters_test.dart View 2 chunks +2 lines, -1 line 0 comments Download
M tests/language_strong/override_inheritance_field_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/language_strong/setter_override2_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/language_strong/super_field_2_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/language_strong/super_field_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/language_strong/type_promotion_closure_test.dart View 1 chunk +6 lines, -4 lines 0 comments Download
M tests/lib_strong/mirrors/instance_members_with_override_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Jennifer Messerly
4 years ago (2016-12-14 21:44:28 UTC) #2
vsm
Nice! One q, but otherwise lgtm! https://codereview.chromium.org/2571363002/diff/20001/pkg/dev_compiler/lib/src/compiler/class_property_model.dart File pkg/dev_compiler/lib/src/compiler/class_property_model.dart (right): https://codereview.chromium.org/2571363002/diff/20001/pkg/dev_compiler/lib/src/compiler/class_property_model.dart#newcode55 pkg/dev_compiler/lib/src/compiler/class_property_model.dart:55: if (accessor.isAbstract) continue; ...
4 years ago (2016-12-14 22:30:47 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/2571363002/diff/20001/pkg/dev_compiler/lib/src/compiler/class_property_model.dart File pkg/dev_compiler/lib/src/compiler/class_property_model.dart (right): https://codereview.chromium.org/2571363002/diff/20001/pkg/dev_compiler/lib/src/compiler/class_property_model.dart#newcode55 pkg/dev_compiler/lib/src/compiler/class_property_model.dart:55: if (accessor.isAbstract) continue; On 2016/12/14 22:30:47, vsm wrote: > ...
4 years ago (2016-12-15 00:59:16 UTC) #4
Jennifer Messerly
I filed this as https://github.com/dart-lang/sdk/issues/28114 but it's an easy fix in code_generator so I'm going ...
4 years ago (2016-12-15 01:07:29 UTC) #5
Jennifer Messerly
PTAL, I've included a new test and a (very small) fix for 28114
4 years ago (2016-12-15 19:15:21 UTC) #7
Jennifer Messerly
Vijay just looked over my shoulder and LGTM'd the latest patchset :)
4 years ago (2016-12-15 19:34:58 UTC) #8
Jennifer Messerly
4 years ago (2016-12-15 19:39:34 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
77f53f609fd5dad2d5aa3bf6e69df0aadeea360e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698