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

Issue 2727323002: Add @MirrorsUsed annotations to speed up tests. (Closed)

Created:
3 years, 9 months ago by floitsch
Modified:
3 years, 8 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Minor fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -16 lines) Patch
M tests/lib/mirrors/abstract_class_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/abstract_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/accessor_cache_overflow_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/array_tracing2_test.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/array_tracing_test.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/basic_types_in_dart_core_test.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/circular_factory_redirection_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/class_mirror_location_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/mirrors/closures_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/closurization_equivalence_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/constructor_kinds_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/constructor_private_name_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/constructors_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/declarations_type_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/delegate_call_through_getter_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/delegate_class_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/delegate_function_invocation_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/lib/mirrors/delegate_library_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/delegate_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/disable_tree_shaking_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/enum_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/equality_test.dart View 1 chunk +1 line, -7 lines 0 comments Download
M tests/lib/mirrors/fake_function_with_call_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/fake_function_without_call_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/field_type_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/function_type_mirror_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_bounded_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_class_declaration_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/generic_f_bounded_mixin_application_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_f_bounded_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_function_typedef_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_interface_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_list_test.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_local_function_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_mixin_applications_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_mixin_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generic_superclass_test.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/lib/mirrors/generics_double_substitution_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generics_dynamic_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/generics_special_types_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generics_substitution_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/generics_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/hot_get_field_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/hot_set_field_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/inference_and_no_such_method_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/inherit_field_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/initializing_formals_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/instance_members_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/instance_members_unimplemented_interface_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/instance_members_with_override_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/instantiate_abstract_class_test.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/intercepted_cache_test.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/intercepted_class_test.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_call_on_closure_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_call_through_getter_previously_accessed_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_call_through_getter_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_call_through_implicit_getter_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_closurization2_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_closurization_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_named_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_private_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_throws_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/is_odd_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/lazy_static_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/libraries_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/library_metadata_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/list_constructor_test.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/local_function_is_static_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_class_mirror_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_constructed_constant_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_constructor_arguments_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_nested_constructor_call_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_scope_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/metadata_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/method_mirror_name_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/method_mirror_properties_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/method_mirror_returntype_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/mirror_in_static_init_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/mirrors_nsm_mismatch_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M tests/lib/mirrors/mirrors_nsm_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/mirrors_resolve_fields_test.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M tests/lib/mirrors/mixin_application_test.dart View 1 chunk +1 line, -5 lines 0 comments Download
M tests/lib/mirrors/mixin_members_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/mixin_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/new_instance_with_type_arguments_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/no_metadata_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/null2_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/operator_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/parameter_is_const_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/parameter_metadata_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/parameter_of_mixin_app_constructor_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/private_class_field_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/private_symbol_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/private_types_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/proxy_type_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/raw_type_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/redirecting_factory_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/reflect_class_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/reflect_model_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflect_runtime_type_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/reflect_uninstantiated_class_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_classes_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_function_type_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_special_types_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_typedefs_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflected_type_typevars_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/reflectively_instantiate_uninstantiated_class_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/regress_14304_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/regress_16321_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/regress_19731_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/regress_26187_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/relation_assignable_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/relation_subtype_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/removed_api_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/repeated_private_anon_mixin_app_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/set_field_with_final_inheritance_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/set_field_with_final_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/spawn_function_root_library_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/static_members_easier_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/static_members_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/static_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/superclass_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/symbol_validation_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/syntax_error_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/synthetic_accessor_properties_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/to_string_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/top_level_accessors_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/type_argument_is_type_variable_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/type_variable_is_static_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/type_variable_owner_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/typearguments_mirror_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/typedef_metadata_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/typevariable_mirror_metadata_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/mirrors/unmangled_type_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/unnamed_mixin_application_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/lib/mirrors/variable_is_const_test.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
floitsch
These annotations sped up dart2js test runs from 3min30 to 3min40 on my machine. (That's ...
3 years, 9 months ago (2017-03-02 18:49:37 UTC) #2
floitsch
Ping. Mistyped the times last time: tools/test.py --mode=release -cdart2js -rd8 lib/mirrors Before: 05:35 After: 03:42
3 years, 9 months ago (2017-03-07 11:17:50 UTC) #3
Siggi Cherem (dart-lang)
lgtm - much faster to review by patching it locally :) https://codereview.chromium.org/2727323002/diff/1/tests/lib/mirrors/basic_types_in_dart_core_test.dart File tests/lib/mirrors/basic_types_in_dart_core_test.dart (right): ...
3 years, 9 months ago (2017-03-07 18:51:55 UTC) #4
Siggi Cherem (dart-lang)
FYI - sra@ is about to land a new test in this folder, if he ...
3 years, 9 months ago (2017-03-08 00:11:38 UTC) #5
floitsch
https://codereview.chromium.org/2727323002/diff/1/tests/lib/mirrors/basic_types_in_dart_core_test.dart File tests/lib/mirrors/basic_types_in_dart_core_test.dart (right): https://codereview.chromium.org/2727323002/diff/1/tests/lib/mirrors/basic_types_in_dart_core_test.dart#newcode7 tests/lib/mirrors/basic_types_in_dart_core_test.dart:7: @MirrorsUsed(targets: const [#int, #double, #num, #bool, #String, #List, #Null, ...
3 years, 9 months ago (2017-03-08 10:44:22 UTC) #6
floitsch
3 years, 8 months ago (2017-03-31 10:46:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
46ba54e31560d9156277172015d2dfbc643d5171 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698