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 1223813006: dart2js cps: Direct access on JS arrays. (Closed)

Created:
5 years, 5 months ago by asgerf
Modified:
5 years, 5 months ago
Reviewers:
karlklose, floitsch
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js cps: Direct access on JS arrays. length, forEach, [], and []= are rewritten to direct array access nodes. There are more methods to specialize, which will be added in separate CLs. This CL also contains a class CpsFragment to help build CPS code. BUG= R=karlklose@google.com Committed: https://github.com/dart-lang/sdk/commit/895283c21a56ca99736aeaa8fc92e6d4c260bc39

Patch Set 1 #

Patch Set 2 : Status files #

Total comments: 13

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Update unit tests and remove unused functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+948 lines, -37 lines) Patch
A pkg/compiler/lib/src/cps_ir/cps_fragment.dart View 1 2 3 4 1 chunk +266 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 4 chunks +81 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 chunk +21 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart View 3 chunks +32 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart View 1 chunk +15 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 4 16 chunks +298 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 chunk +20 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart View 1 chunk +18 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart View 2 chunks +19 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 1 chunk +15 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 5 chunks +69 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart View 1 chunk +21 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart View 3 chunks +36 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart View 1 2 3 4 3 chunks +20 lines, -21 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
asgerf
https://codereview.chromium.org/1223813006/diff/20001/tests/language/language_dart2js.status File tests/language/language_dart2js.status (right): https://codereview.chromium.org/1223813006/diff/20001/tests/language/language_dart2js.status#newcode438 tests/language/language_dart2js.status:438: if_null_assignment_static_test/33: RuntimeError # TypeError: v0.get$a is not a function ...
5 years, 5 months ago (2015-07-07 14:53:13 UTC) #2
karlklose
LGTM! https://codereview.chromium.org/1223813006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_fragment.dart File pkg/compiler/lib/src/cps_ir/cps_fragment.dart (right): https://codereview.chromium.org/1223813006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_fragment.dart#newcode18 pkg/compiler/lib/src/cps_ir/cps_fragment.dart:18: /// a hole. Maybe add: "Otherwise, the fragment ...
5 years, 5 months ago (2015-07-08 08:39:24 UTC) #3
asgerf
https://codereview.chromium.org/1223813006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_fragment.dart File pkg/compiler/lib/src/cps_ir/cps_fragment.dart (right): https://codereview.chromium.org/1223813006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_fragment.dart#newcode18 pkg/compiler/lib/src/cps_ir/cps_fragment.dart:18: /// a hole. On 2015/07/08 08:39:24, karlklose wrote: > ...
5 years, 5 months ago (2015-07-08 10:28:37 UTC) #4
asgerf
5 years, 5 months ago (2015-07-08 12:33:05 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
895283c21a56ca99736aeaa8fc92e6d4c260bc39 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698