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

Issue 1918033002: Remove virtualField helper, just emit getters/setters in codegen. (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

Remove virtualField helper, just emit getters/setters in codegen. Also fixes problems with final field overrides, which only override the getter, not the setter. BUG=https://github.com/dart-lang/dev_compiler/issues/486 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/7e8d226163429e7cce08dcf9de2581b985bbb76a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : remove maps #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -97 lines) Patch
M lib/runtime/dart_sdk.js View 1 chunk +0 lines, -13 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 2 3 4 15 chunks +126 lines, -54 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M test/codegen/expect/language-all.js View 1 2 3 4 Binary file 0 comments Download
A + test/codegen/language/final_field_override_test.dart View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/classes.dart View 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Harry Terkelsen
4 years, 8 months ago (2016-04-25 22:04:06 UTC) #2
Jennifer Messerly
Wow, this is headed in an awesome direction! <3 the simplifications around removing virtual field! ...
4 years, 8 months ago (2016-04-25 22:47:05 UTC) #3
Harry Terkelsen
thanks John, PTAL! https://codereview.chromium.org/1918033002/diff/40001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1918033002/diff/40001/lib/src/compiler/code_generator.dart#newcode84 lib/src/compiler/code_generator.dart:84: final _virtualFields = new HashMap<VariableDeclaration, JS.TemporaryId>(); ...
4 years, 8 months ago (2016-04-26 18:29:27 UTC) #4
Jennifer Messerly
LGTM!
4 years, 8 months ago (2016-04-26 19:39:11 UTC) #5
Harry Terkelsen
4 years, 8 months ago (2016-04-26 19:39:53 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
7e8d226163429e7cce08dcf9de2581b985bbb76a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698