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

Issue 1895903002: emit 'this.x' when 'super.x' accesses a field (Closed)

Created:
4 years, 8 months ago by Harry Terkelsen
Modified:
4 years, 8 months ago
Reviewers:
vsm, Leaf, 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 'this.x' when 'super.x' accesses a field BUG=https://github.com/dart-lang/dev_compiler/issues/501 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/1a188ce58a3673f7d845af1a7b57a60aa0b66a2a

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -3 lines) Patch
M lib/src/compiler/code_generator.dart View 1 2 4 chunks +11 lines, -3 lines 0 comments Download
M test/codegen/expect/language-all.js View 1 2 Binary file 0 comments Download
A test/codegen/language/field_super_access2_test.dart View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A test/codegen/language/field_super_access_test.dart View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Harry Terkelsen
4 years, 8 months ago (2016-04-18 18:15:47 UTC) #2
vsm
https://codereview.chromium.org/1895903002/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1895903002/diff/1/lib/src/compiler/code_generator.dart#newcode3059 lib/src/compiler/code_generator.dart:3059: member.getter.isSynthetic) { Do we need this for setters as ...
4 years, 8 months ago (2016-04-18 20:27:43 UTC) #3
Harry Terkelsen
thanks Vijay. PTAL https://codereview.chromium.org/1895903002/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1895903002/diff/1/lib/src/compiler/code_generator.dart#newcode3059 lib/src/compiler/code_generator.dart:3059: member.getter.isSynthetic) { On 2016/04/18 20:27:43, vsm ...
4 years, 8 months ago (2016-04-18 20:59:50 UTC) #4
Jennifer Messerly
almost looks good to me :) https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart#newcode3045 lib/src/compiler/code_generator.dart:3045: JS.Expression _emitGet(Expression target, ...
4 years, 8 months ago (2016-04-18 21:10:12 UTC) #5
Jennifer Messerly
https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart#newcode3060 lib/src/compiler/code_generator.dart:3060: member.setter.isSynthetic) { On 2016/04/18 21:10:12, John Messerly wrote: > ...
4 years, 8 months ago (2016-04-18 21:20:13 UTC) #6
Harry Terkelsen
Thanks! https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1895903002/diff/20001/lib/src/compiler/code_generator.dart#newcode3045 lib/src/compiler/code_generator.dart:3045: JS.Expression _emitGet(Expression target, SimpleIdentifier memberId) { On 2016/04/18 ...
4 years, 8 months ago (2016-04-18 21:28:58 UTC) #7
Harry Terkelsen
Committed patchset #3 (id:40001) manually as 1a188ce58a3673f7d845af1a7b57a60aa0b66a2a (presubmit successful).
4 years, 8 months ago (2016-04-18 21:44:29 UTC) #9
Jennifer Messerly
LGTM. By the way, did you understand the diff to: https://codereview.chromium.org/download/issue1895903002_40001_50002.diff ? a lot of ...
4 years, 8 months ago (2016-04-18 21:51:31 UTC) #10
Harry Terkelsen
On 2016/04/18 21:51:31, John Messerly wrote: > LGTM. By the way, did you understand the ...
4 years, 8 months ago (2016-04-18 21:55:54 UTC) #11
Harry Terkelsen
4 years, 8 months ago (2016-04-18 22:02:36 UTC) #12
Message was sent while issue was closed.
On 2016/04/18 21:55:54, Harry Terkelsen wrote:
> On 2016/04/18 21:51:31, John Messerly wrote:
> > LGTM. By the way, did you understand the diff to:
> > https://codereview.chromium.org/download/issue1895903002_40001_50002.diff
> > ?
> > 
> > a lot of code seems to have changed, I don't understand why.
> 
> Yeah, it looks like it was just reordered, and my two tests were added in. I'm
> not sure why there was so much churn, I just figured it was normal when new
> tests were added that this file would have a large change.

It looks like the reorderings are mostly rearranging things with underscores in
the name. The code that generates language-all.js is:

cat test/codegen/expect/language/*.js > test/codegen/expect/language-all.js

So maybe it has to do with some setting that sorts names with underscores
differently from system to system?

Powered by Google App Engine
This is Rietveld 408576698