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

Issue 3010613003: Simplify annotations in runtime check tests. (Closed)

Created:
3 years, 3 months ago by Paul Berry
Modified:
3 years, 3 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Simplify annotations in runtime check tests. It turns out that it is easier to calculate whether or not checks are needed at the site of the declaration of the interface target, not at the call site. Accordingly, it makes sense to put the annotations on the interface target declarations as well. This lets us get rid of a clumsy annotation format that referred to arguments by number, in favor of simply annotating the formal parameters themselves. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/c3ae6bd2963025a9cb31c037d01503325633ac9d

Patch Set 1 #

Patch Set 2 : Add some missing comments #

Total comments: 2

Patch Set 3 : Address code review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -287 lines) Patch
M pkg/analyzer/test/src/task/strong/front_end_runtime_check_test.dart View 1 9 chunks +81 lines, -158 lines 0 comments Download
M pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 1 2 2 chunks +9 lines, -68 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/call_through_this.dart View 2 chunks +9 lines, -8 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/contravariant_generic_return.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/contravariant_getter.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart View 1 chunk +8 lines, -6 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart View 1 chunk +9 lines, -6 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_in_interface.dart View 2 chunks +6 lines, -5 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_in_interface_mixin.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_in_interface_super.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_in_interface_super_mixin.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_tear_off.dart View 3 chunks +5 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/covariant_setter.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/dynamic_invocation.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/dynamic_invocation_generic.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/runtime_checks/dynamic_invocation_of_getter.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
I only need a review from one of you.
3 years, 3 months ago (2017-08-29 23:43:51 UTC) #2
scheglov
lgtm https://codereview.chromium.org/3010613003/diff/20001/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart File pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart (right): https://codereview.chromium.org/3010613003/diff/20001/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart#newcode880 pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart:880: new InstrumentationValueLiteral('closure')); Do you mean "this"?
3 years, 3 months ago (2017-08-30 04:07:54 UTC) #3
Paul Berry
https://codereview.chromium.org/3010613003/diff/20001/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart File pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart (right): https://codereview.chromium.org/3010613003/diff/20001/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart#newcode880 pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart:880: new InstrumentationValueLiteral('closure')); On 2017/08/30 04:07:54, scheglov wrote: > Do ...
3 years, 3 months ago (2017-08-30 17:55:33 UTC) #4
Paul Berry
3 years, 3 months ago (2017-08-30 18:05:22 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
c3ae6bd2963025a9cb31c037d01503325633ac9d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698