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

Issue 750323003: Remove js.ArrayElement. (Closed)

Created:
6 years ago by sigurdm
Modified:
6 years ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove js.ArrayElement. Instead introduce js.ArrayHole to mark empty spots in Arrays. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=42060

Patch Set 1 #

Total comments: 24

Patch Set 2 : Add parsing and testing of array holes, make lists non-growable #

Total comments: 8

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -151 lines) Patch
M pkg/compiler/lib/src/js/builder.dart View 1 2 chunks +14 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/js/nodes.dart View 3 chunks +13 lines, -33 lines 0 comments Download
M pkg/compiler/lib/src/js/printer.dart View 1 1 chunk +16 lines, -16 lines 0 comments Download
M pkg/compiler/lib/src/js/template.dart View 1 2 1 chunk +8 lines, -14 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 2 chunks +7 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 1 3 chunks +3 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 2 2 chunks +8 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 7 chunks +14 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_builder.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart View 2 chunks +3 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/metadata_emitter.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 2 3 chunks +9 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/use_unused_api.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js/js_parser_statements_test.dart View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/compiler/dart2js/js_parser_test.dart View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/type_representation_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
sigurdm
6 years ago (2014-11-28 12:21:40 UTC) #2
floitsch
LGTM. some nits (and feel free to ignore the "growable: false"). https://codereview.chromium.org/750323003/diff/1/pkg/compiler/lib/src/js/printer.dart File pkg/compiler/lib/src/js/printer.dart (right): ...
6 years ago (2014-11-28 12:42:50 UTC) #3
sigurdm
https://codereview.chromium.org/750323003/diff/1/pkg/compiler/lib/src/js/printer.dart File pkg/compiler/lib/src/js/printer.dart (right): https://codereview.chromium.org/750323003/diff/1/pkg/compiler/lib/src/js/printer.dart#newcode785 pkg/compiler/lib/src/js/printer.dart:785: (i == 0 && elements[i] is ArrayHole)) { On ...
6 years ago (2014-11-28 14:52:12 UTC) #4
sigurdm
ptal - I added parsing of array holes.
6 years ago (2014-12-01 09:09:21 UTC) #5
floitsch
Still LGTM. https://codereview.chromium.org/750323003/diff/20001/pkg/compiler/lib/src/js/template.dart File pkg/compiler/lib/src/js/template.dart (right): https://codereview.chromium.org/750323003/diff/20001/pkg/compiler/lib/src/js/template.dart#newcode617 pkg/compiler/lib/src/js/template.dart:617: .map((Expression element) => visit(element)) .map(visit) https://codereview.chromium.org/750323003/diff/20001/pkg/compiler/lib/src/js/template.dart#newcode620 pkg/compiler/lib/src/js/template.dart:620: ...
6 years ago (2014-12-01 13:03:29 UTC) #6
sigurdm
https://codereview.chromium.org/750323003/diff/20001/pkg/compiler/lib/src/js/template.dart File pkg/compiler/lib/src/js/template.dart (right): https://codereview.chromium.org/750323003/diff/20001/pkg/compiler/lib/src/js/template.dart#newcode617 pkg/compiler/lib/src/js/template.dart:617: .map((Expression element) => visit(element)) On 2014/12/01 13:03:29, floitsch wrote: ...
6 years ago (2014-12-02 09:27:31 UTC) #7
sigurdm
6 years ago (2014-12-02 09:28:46 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 42060 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698