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

Issue 2859673002: Pass type argument vector to generic functions (if --reify-generic-functions is (Closed)

Created:
3 years, 7 months ago by regis
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Pass type argument vector to generic functions (if --reify-generic-functions is true, still false per default). Work in progress, not functional yet (passed vector is still ignored in callee). R=vegorov@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/9aafded095a820faa99df451e8e1ae0ab6f85f29

Patch Set 1 #

Total comments: 28

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : sync and work in progress #

Total comments: 6

Patch Set 4 : address review comments and sync #

Patch Set 5 : fix dartk and sync #

Total comments: 40

Patch Set 6 : address review comments and sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1037 lines, -569 lines) Patch
M pkg/kernel/lib/transformations/mixin_full_resolution.dart View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/lib/function.cc View 1 3 chunks +21 lines, -16 lines 0 comments Download
M runtime/lib/invocation_mirror_patch.dart View 3 chunks +12 lines, -5 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 4 5 11 chunks +32 lines, -21 lines 0 comments Download
M runtime/vm/aot_optimizer.cc View 1 2 3 4 5 24 chunks +52 lines, -52 lines 0 comments Download
M runtime/vm/assembler_dbc_test.cc View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/ast.h View 1 2 2 chunks +38 lines, -1 line 0 comments Download
M runtime/vm/code_patcher_arm64_test.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_arm_test.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_ia32_test.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_mips_test.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_x64_test.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 16 chunks +37 lines, -24 lines 0 comments Download
M runtime/vm/dart_entry.h View 8 chunks +24 lines, -10 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 17 chunks +62 lines, -29 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 29 chunks +119 lines, -64 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 11 chunks +20 lines, -27 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 10 chunks +104 lines, -60 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 6 chunks +26 lines, -17 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_dbc.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M runtime/vm/jit_optimizer.cc View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/kernel.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 1 2 3 4 5 4 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 4 5 10 chunks +31 lines, -16 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M runtime/vm/object.cc View 1 2 4 chunks +26 lines, -7 lines 0 comments Download
M runtime/vm/object_store.cc View 1 chunk +12 lines, -8 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/vm/parser.h View 2 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 31 chunks +125 lines, -67 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/regexp_assembler_ir.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M runtime/vm/resolver.h View 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/resolver.cc View 7 chunks +15 lines, -9 lines 0 comments Download
M runtime/vm/resolver_test.cc View 6 chunks +17 lines, -11 lines 0 comments Download
M runtime/vm/runtime_entry.cc View 1 2 3 4 5 6 chunks +17 lines, -8 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M runtime/vm/stub_code_arm64.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M runtime/vm/stub_code_mips.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 2 3 4 5 2 chunks +20 lines, -2 lines 0 comments Download
M runtime/vm/unit_test.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
regis
This is in a shape decent enough to be committed. Let me know what you ...
3 years, 7 months ago (2017-05-02 21:30:40 UTC) #2
zra
https://codereview.chromium.org/2859673002/diff/1/runtime/lib/function.cc File runtime/lib/function.cc (right): https://codereview.chromium.org/2859673002/diff/1/runtime/lib/function.cc#newcode33 runtime/lib/function.cc:33: Closure::CheckedHandle(zone, arguments->NativeArgAt(0)); The stuff in this file is inconsistent ...
3 years, 7 months ago (2017-05-03 15:03:25 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2859673002/diff/1/runtime/vm/flow_graph_compiler.cc File runtime/vm/flow_graph_compiler.cc (right): https://codereview.chromium.org/2859673002/diff/1/runtime/vm/flow_graph_compiler.cc#newcode1200 runtime/vm/flow_graph_compiler.cc:1200: intptr_t type_args_len, I wonder if triple of <type-args-len, pushed_argc, ...
3 years, 7 months ago (2017-05-04 12:12:23 UTC) #4
regis
Thanks for the feedback, ptal. -- Regis https://codereview.chromium.org/2859673002/diff/1/runtime/lib/function.cc File runtime/lib/function.cc (right): https://codereview.chromium.org/2859673002/diff/1/runtime/lib/function.cc#newcode33 runtime/lib/function.cc:33: Closure::CheckedHandle(zone, arguments->NativeArgAt(0)); ...
3 years, 7 months ago (2017-05-09 18:31:23 UTC) #5
zra
https://codereview.chromium.org/2859673002/diff/20001/runtime/lib/invocation_mirror_patch.dart File runtime/lib/invocation_mirror_patch.dart (right): https://codereview.chromium.org/2859673002/diff/20001/runtime/lib/invocation_mirror_patch.dart#newcode69 runtime/lib/invocation_mirror_patch.dart:69: int numPositionalArguments = _argumentsDescriptor[_POSITIONAL_COUNT]; Just checking that it is ...
3 years, 7 months ago (2017-05-11 04:14:21 UTC) #6
regis
Thanks! https://codereview.chromium.org/2859673002/diff/20001/runtime/lib/invocation_mirror_patch.dart File runtime/lib/invocation_mirror_patch.dart (right): https://codereview.chromium.org/2859673002/diff/20001/runtime/lib/invocation_mirror_patch.dart#newcode69 runtime/lib/invocation_mirror_patch.dart:69: int numPositionalArguments = _argumentsDescriptor[_POSITIONAL_COUNT]; On 2017/05/11 04:14:20, zra ...
3 years, 7 months ago (2017-05-11 09:55:11 UTC) #7
zra
lgtm but since it's a big change, others should finish reviewing as well.
3 years, 7 months ago (2017-05-13 06:11:11 UTC) #8
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2859673002/diff/80001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/2859673002/diff/80001/runtime/lib/mirrors.cc#newcode1529 runtime/lib/mirrors.cc:1529: const intptr_t kNumArgs = args.Length(); using k... prefix ...
3 years, 7 months ago (2017-05-13 22:20:14 UTC) #9
regis
Thank you very much! https://codereview.chromium.org/2859673002/diff/80001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/2859673002/diff/80001/runtime/lib/mirrors.cc#newcode1529 runtime/lib/mirrors.cc:1529: const intptr_t kNumArgs = args.Length(); ...
3 years, 7 months ago (2017-05-18 21:02:13 UTC) #10
regis
3 years, 7 months ago (2017-05-18 21:03:54 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
9aafded095a820faa99df451e8e1ae0ab6f85f29 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698