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

Issue 1783053005: Fix all for-in warnings in dart2js (Closed)

Created:
4 years, 9 months ago by sra1
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix all for-in warnings in dart2js NodeList mixes in IterableMixin<Node>. This makes the object bigger, costing ~3% extra size for the Dart AST. (10MB out of 350MB) One idea would be to revert this change and make all the for-in sites use the .nodes member. Link<T> now implements Iterable<T>, with missing methods added. IterableMixin could not be used since Link has a const constructor. I would like to see Link<T> replaced with fixed length lists or unmodifiable lists. A couple of other classes were modified to return an Iterable. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/56d0f6aeeec939af69d860a50a0fafdd74a838d6

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -8 lines) Patch
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/type_test_registry.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/tree/nodes.dart View 1 2 chunks +8 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/util/link.dart View 2 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 9 (5 generated)
sra1
4 years, 9 months ago (2016-03-12 00:25:59 UTC) #5
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1783053005/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/1783053005/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode944 pkg/compiler/lib/src/js_backend/runtime_types.dart:944: for (ClassElement holder in this.allClassesNeedingTypeChecks) { => classes ...
4 years, 9 months ago (2016-03-12 00:40:19 UTC) #6
sra1
https://chromiumcodereview.appspot.com/1783053005/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://chromiumcodereview.appspot.com/1783053005/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode944 pkg/compiler/lib/src/js_backend/runtime_types.dart:944: for (ClassElement holder in this.allClassesNeedingTypeChecks) { On 2016/03/12 00:40:19, ...
4 years, 9 months ago (2016-03-12 00:44:20 UTC) #7
sra1
4 years, 9 months ago (2016-03-12 01:19:47 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
56d0f6aeeec939af69d860a50a0fafdd74a838d6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698