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

Issue 1083763003: refactor emitMemberName to be used more consistently (Closed)

Created:
5 years, 8 months ago by Jennifer Messerly
Modified:
5 years, 8 months ago
Reviewers:
Jacob
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

refactor emitMemberName to be used more consistently other changes: * adds _emitSend for more consistent emitting of method calls. can't be used everywhere yet, but it unifies some things * more consistent use of the core.String.* static pattern * fix dynamic invoke to private members * fix implicit-this to use emitMemberName, which makes them work with extension methods * build the global extension method table up-front and optimize lookups (method name first, then subtype test if needed) * teach the compiler that IsExpression never returns null R=jacobr@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/30f9e3d8d3c83839a4f8ac7d184ccd6ba1ed081e

Patch Set 1 : #

Total comments: 20

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -526 lines) Patch
M lib/runtime/dart/_interceptors.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lib/runtime/dart/_internal.js View 1 17 chunks +33 lines, -33 lines 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 1 6 chunks +6 lines, -6 lines 0 comments Download
M lib/runtime/dart/_js_helper.js View 1 14 chunks +18 lines, -18 lines 0 comments Download
M lib/runtime/dart/_native_typed_data.js View 1 23 chunks +36 lines, -36 lines 0 comments Download
M lib/runtime/dart/async.js View 1 7 chunks +8 lines, -8 lines 0 comments Download
M lib/runtime/dart/collection.js View 1 36 chunks +84 lines, -84 lines 0 comments Download
M lib/runtime/dart/convert.js View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/runtime/dart/core.js View 1 16 chunks +30 lines, -10 lines 0 comments Download
M lib/runtime/dart_runtime.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 41 chunks +281 lines, -323 lines 0 comments Download
M lib/src/utils.dart View 1 2 chunks +5 lines, -1 line 0 comments Download
M test/codegen/expect/names.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Jennifer Messerly
5 years, 8 months ago (2015-04-13 22:29:02 UTC) #4
Jacob
looks good overall https://codereview.chromium.org/1083763003/diff/40001/lib/runtime/dart/_internal.js File lib/runtime/dart/_internal.js (right): https://codereview.chromium.org/1083763003/diff/40001/lib/runtime/dart/_internal.js#newcode26 lib/runtime/dart/_internal.js:26: if (this[core.$length] == 0) nice. glad ...
5 years, 8 months ago (2015-04-13 23:19:36 UTC) #5
Jennifer Messerly
Thanks so much! PTAL, I think I got them. https://codereview.chromium.org/1083763003/diff/40001/lib/runtime/dart_runtime.js File lib/runtime/dart_runtime.js (left): https://codereview.chromium.org/1083763003/diff/40001/lib/runtime/dart_runtime.js#oldcode71 lib/runtime/dart_runtime.js:71: ...
5 years, 8 months ago (2015-04-14 21:21:01 UTC) #7
Jacob
lgtm https://codereview.chromium.org/1083763003/diff/40001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1083763003/diff/40001/lib/src/codegen/js_codegen.dart#newcode1233 lib/src/codegen/js_codegen.dart:1233: code = 'dart.dsend(#, #, #)'; On 2015/04/14 21:21:00, ...
5 years, 8 months ago (2015-04-14 21:41:06 UTC) #8
Jennifer Messerly
https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart#newcode2294 lib/src/codegen/js_codegen.dart:2294: static const DPUT = 'dput'; On 2015/04/14 21:41:06, Jacob ...
5 years, 8 months ago (2015-04-14 22:17:19 UTC) #9
Jacob
lgtm https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart#newcode2294 lib/src/codegen/js_codegen.dart:2294: static const DPUT = 'dput'; On 2015/04/14 22:17:19, ...
5 years, 8 months ago (2015-04-14 22:25:01 UTC) #10
Jennifer Messerly
https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1083763003/diff/80001/lib/src/codegen/js_codegen.dart#newcode2294 lib/src/codegen/js_codegen.dart:2294: static const DPUT = 'dput'; On 2015/04/14 22:25:00, Jacob ...
5 years, 8 months ago (2015-04-14 22:45:28 UTC) #11
Jennifer Messerly
5 years, 8 months ago (2015-04-14 23:07:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:100001) manually as
30f9e3d8d3c83839a4f8ac7d184ccd6ba1ed081e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698