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

Issue 957973006: dart2js: don't emit unneeded native info. (Closed)

Created:
5 years, 10 months ago by zarah
Modified:
5 years, 9 months ago
Reviewers:
floitsch, herhut, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: don't emit unneeded native info. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=44164

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed comments. Changed to emit the interceptor and native info handling. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -59 lines) Patch
M pkg/compiler/lib/src/js_emitter/model.dart View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M tests/lib/typed_data/byte_data_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/constructor_checks_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/endianness_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_list_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_shuffle_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_two_arg_shuffle_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_unbox_phi_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float32x4_unbox_regress_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/float64x2_functional_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/int32x4_arithmetic_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/int32x4_bigint_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/int32x4_list_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/int32x4_shuffle_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/int32x4_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + tests/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M tests/lib/typed_data/setRange_1_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/setRange_2_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/setRange_3_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/setRange_4_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/setRange_5_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/setRange_lib.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/simd_store_to_load_forward_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/simd_type_check_removal.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/typed_data_list_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/lib/typed_data/typed_data_sublist_type_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/typed_data/typed_list_iterable_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (1 generated)
zarah
I am not entirely sure about this, so if any of you think otherwise let ...
5 years, 10 months ago (2015-02-26 15:48:31 UTC) #2
floitsch
https://codereview.chromium.org/957973006/diff/1/pkg/compiler/lib/src/js_emitter/native_emitter.dart File pkg/compiler/lib/src/js_emitter/native_emitter.dart (right): https://codereview.chromium.org/957973006/diff/1/pkg/compiler/lib/src/js_emitter/native_emitter.dart#newcode178 pkg/compiler/lib/src/js_emitter/native_emitter.dart:178: if (classes.length != unneededClasses.length) { Explain when/why this can ...
5 years, 10 months ago (2015-02-26 18:12:12 UTC) #3
zarah
I will update the tests once we agree on which approach to use. https://codereview.chromium.org/957973006/diff/1/pkg/compiler/lib/src/js_emitter/native_emitter.dart File ...
5 years, 9 months ago (2015-02-27 09:03:48 UTC) #4
floitsch
My vote: - make the two consistent by adding a native-handler even though no native ...
5 years, 9 months ago (2015-02-27 12:32:23 UTC) #5
zarah
PTAL
5 years, 9 months ago (2015-03-02 13:02:30 UTC) #6
floitsch
LGTM. https://codereview.chromium.org/957973006/diff/20001/pkg/compiler/lib/src/js_emitter/program_builder.dart File pkg/compiler/lib/src/js_emitter/program_builder.dart (right): https://codereview.chromium.org/957973006/diff/20001/pkg/compiler/lib/src/js_emitter/program_builder.dart#newcode130 pkg/compiler/lib/src/js_emitter/program_builder.dart:130: .hasInstantiatedNativeClasses(), Move it out into a variable (as ...
5 years, 9 months ago (2015-03-02 14:26:01 UTC) #7
zarah
https://codereview.chromium.org/957973006/diff/20001/pkg/compiler/lib/src/js_emitter/program_builder.dart File pkg/compiler/lib/src/js_emitter/program_builder.dart (right): https://codereview.chromium.org/957973006/diff/20001/pkg/compiler/lib/src/js_emitter/program_builder.dart#newcode130 pkg/compiler/lib/src/js_emitter/program_builder.dart:130: .hasInstantiatedNativeClasses(), On 2015/03/02 14:26:01, floitsch wrote: > Move it ...
5 years, 9 months ago (2015-03-02 15:40:36 UTC) #8
zarah
5 years, 9 months ago (2015-03-03 11:19:25 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 44164 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698