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

Issue 1899373002: Emit forwarding getter/setter when overriding just a getter or setter. (Closed)

Created:
4 years, 8 months ago by Harry Terkelsen
Modified:
4 years, 8 months ago
Reviewers:
vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Emit forwarding getter/setter when overriding just a getter or setter. Based on Vijay's change: https://github.com/dart-lang/dev_compiler/commit/74dc4a6a808b271312aabe1bf463f1e7f4889a43 BUG=https://github.com/dart-lang/dev_compiler/issues/497 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/1b461199920149e856272182187f506260f62cf5

Patch Set 1 #

Patch Set 2 : fix complex setters/getters #

Total comments: 20

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -85 lines) Patch
M lib/runtime/dart_sdk.js View 1 2 3 4 13 chunks +32 lines, -9 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 2 3 10 chunks +48 lines, -19 lines 0 comments Download
M lib/src/compiler/js_field_storage.dart View 1 2 3 1 chunk +27 lines, -42 lines 0 comments Download
M test/codegen/expect/extensions.js View 1 chunk +0 lines, -1 line 0 comments Download
M test/codegen/expect/language-all.js View 1 2 Binary file 0 comments Download
A + test/codegen/language/getter_override3_test.dart View 1 chunk +10 lines, -7 lines 0 comments Download
A + test/codegen/language/setter_override3_test.dart View 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Harry Terkelsen
4 years, 8 months ago (2016-04-20 00:56:26 UTC) #2
Harry Terkelsen
https://codereview.chromium.org/1899373002/diff/20001/lib/runtime/dart_sdk.js File lib/runtime/dart_sdk.js (right): https://codereview.chromium.org/1899373002/diff/20001/lib/runtime/dart_sdk.js#newcode4062 lib/runtime/dart_sdk.js:4062: + super.length = value; it looks like ddc is ...
4 years, 8 months ago (2016-04-20 00:57:36 UTC) #3
Jennifer Messerly
Wow nice! A few thought here, in how we can make the field code a ...
4 years, 8 months ago (2016-04-20 21:16:40 UTC) #4
Harry Terkelsen
Thanks John, PTAL https://codereview.chromium.org/1899373002/diff/20001/lib/runtime/dart_sdk.js File lib/runtime/dart_sdk.js (right): https://codereview.chromium.org/1899373002/diff/20001/lib/runtime/dart_sdk.js#newcode4062 lib/runtime/dart_sdk.js:4062: + super.length = value; On 2016/04/20 ...
4 years, 8 months ago (2016-04-20 23:33:28 UTC) #5
Jennifer Messerly
LGTM! https://codereview.chromium.org/1899373002/diff/40001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1899373002/diff/40001/lib/src/compiler/code_generator.dart#newcode45 lib/src/compiler/code_generator.dart:45: //TODO(leafp): Remove deprecated dependency it looks like this ...
4 years, 8 months ago (2016-04-21 00:53:08 UTC) #6
Harry Terkelsen
thanks John! https://codereview.chromium.org/1899373002/diff/40001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1899373002/diff/40001/lib/src/compiler/code_generator.dart#newcode45 lib/src/compiler/code_generator.dart:45: //TODO(leafp): Remove deprecated dependency On 2016/04/21 00:53:08, ...
4 years, 8 months ago (2016-04-21 01:00:11 UTC) #7
Harry Terkelsen
4 years, 8 months ago (2016-04-21 01:08:14 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
1b461199920149e856272182187f506260f62cf5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698