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

Issue 2979353002: implement `Invocation.typeArguments` in DDC (Closed)

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

Description

implement `Invocation.typeArguments` in DDC also fixes various bugs: * setters now use the correct memberName symbol, fixes #30223 * object members work for callable classes, fixes #30213 * some test fixes to work in strong mode * a few other small cleanups (e.g. obsolete `dart.list` is removed) R=vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/04f3c8835f76ed09965ed2d68c242b09e779b549

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -235 lines) Patch
M pkg/dev_compiler/lib/sdk/ddc_sdk.sum View 1 Binary file 0 comments Download
M pkg/dev_compiler/lib/src/compiler/code_generator.dart View 1 6 chunks +35 lines, -37 lines 0 comments Download
M pkg/dev_compiler/test/browser/language_tests.js View 1 2 chunks +2 lines, -1 line 0 comments Download
M pkg/dev_compiler/test/browser/runtime_tests.js View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/test/not_yet_strong_tests.dart View 1 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/tool/input_sdk/patch/internal_patch.dart View 1 1 chunk +5 lines, -1 line 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart View 1 10 chunks +9 lines, -31 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart View 1 24 chunks +50 lines, -70 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/debugger.dart View 1 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/interceptors.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/js_array.dart View 1 4 chunks +7 lines, -13 lines 3 comments Download
M pkg/dev_compiler/tool/input_sdk/private/regexp_helper.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M tests/language_strong/invocation_mirror2_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/language_strong/invocation_mirror_test.dart View 1 5 chunks +47 lines, -51 lines 0 comments Download
M tests/language_strong/mock_writable_final_field_test.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/language_strong/no_such_method_mock_test.dart View 1 2 chunks +5 lines, -6 lines 0 comments Download
M tests/lib_strong/collection/list_test.dart View 1 2 chunks +12 lines, -14 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Jennifer Messerly
3 years, 5 months ago (2017-07-20 04:33:47 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/js_array.dart File pkg/dev_compiler/tool/input_sdk/private/js_array.dart (right): https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/js_array.dart#newcode21 pkg/dev_compiler/tool/input_sdk/private/js_array.dart:21: factory JSArray.of(allocation) { Drive-by-comment: We are considering (strongly) to ...
3 years, 5 months ago (2017-07-20 08:59:04 UTC) #6
vsm
https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart File pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart (right): https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart#newcode284 pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart:284: $name, $args, opts, { What is opts here? I ...
3 years, 5 months ago (2017-07-20 15:07:12 UTC) #7
Jennifer Messerly
thanks! https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart File pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart (right): https://codereview.chromium.org/2979353002/diff/1/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart#newcode284 pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart:284: $name, $args, opts, { On 2017/07/20 15:07:12, vsm ...
3 years, 5 months ago (2017-07-20 19:14:57 UTC) #8
Jennifer Messerly
PTAL
3 years, 5 months ago (2017-07-20 19:50:50 UTC) #9
vsm
lgtm
3 years, 5 months ago (2017-07-20 23:03:44 UTC) #10
Jennifer Messerly
Committed patchset #2 (id:10001) manually as 04f3c8835f76ed09965ed2d68c242b09e779b549 (presubmit successful).
3 years, 5 months ago (2017-07-21 22:51:27 UTC) #13
Leaf
https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/input_sdk/private/js_array.dart File pkg/dev_compiler/tool/input_sdk/private/js_array.dart (right): https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/input_sdk/private/js_array.dart#newcode24 pkg/dev_compiler/tool/input_sdk/private/js_array.dart:24: return dart.setType(allocation, JS('', 'JSArray')); This change caused a dart._check ...
3 years, 4 months ago (2017-07-26 00:46:31 UTC) #15
Jennifer Messerly
https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/input_sdk/private/js_array.dart File pkg/dev_compiler/tool/input_sdk/private/js_array.dart (right): https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/input_sdk/private/js_array.dart#newcode24 pkg/dev_compiler/tool/input_sdk/private/js_array.dart:24: return dart.setType(allocation, JS('', 'JSArray')); On 2017/07/26 00:46:31, Leaf wrote: ...
3 years, 4 months ago (2017-07-26 01:23:01 UTC) #16
Jennifer Messerly
3 years, 4 months ago (2017-07-26 01:33:47 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/i...
File pkg/dev_compiler/tool/input_sdk/private/js_array.dart (right):

https://codereview.chromium.org/2979353002/diff/10001/pkg/dev_compiler/tool/i...
pkg/dev_compiler/tool/input_sdk/private/js_array.dart:24: return
dart.setType(allocation, JS('', 'JSArray'));
On 2017/07/26 01:23:00, Jennifer Messerly wrote:
> On 2017/07/26 00:46:31, Leaf wrote:
> > This change caused a dart._check to be added here, which seems to be causing
a
> > massive performance regression.  I tested out changing just this line in
> google3
> > and saw a 5X or worse slowdown in test performance.  
> > 
> > I'll follow up with a CL to change this tomorrow.  I think we need to look
at
> > alternatives to setType as well - still preliminary, but I think I'm seeing
a
> > lot of slowdown for our pattern.
> 
> oh shoot, I thought I'd fixed that before landing :(. I'll fix that real quick
&
> TBR to remove the cast
> 
> I can also try out some alternate patterns. Since JSArray is in the SDK and
> cannot be subclassed, we have a lot of options in the implementation

fixed in
https://codereview.chromium.org/2985063002/diff/1/pkg/dev_compiler/tool/input...

Powered by Google App Engine
This is Rietveld 408576698