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

Issue 1512303002: dart2js cps: Add instruction for bounds checks. (Closed)

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

Description

dart2js cps: Add instruction for bounds checks. The new instruction is expanded into low-level operations in a new pass Finalize. The Finalize pass is mandatory. The BoundsCheck returns the indexable object being checked so it can be used to restrict code motion. BUG= R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/f53ce36c3d260710001d4a6f080f5e7cd83624f4

Patch Set 1 #

Total comments: 7

Patch Set 2 : Update comments #

Patch Set 3 : Update gvn_test output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -50 lines) Patch
M pkg/compiler/lib/src/cps_ir/bounds_checker.dart View 1 4 chunks +68 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_fragment.dart View 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 2 3 chunks +113 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
A pkg/compiler/lib/src/cps_ir/finalize.dart View 1 chunk +75 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 9 chunks +68 lines, -32 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 3 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_gvn_test.dart View 1 2 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
asgerf
https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/js_backend/codegen/task.dart File pkg/compiler/lib/src/js_backend/codegen/task.dart (right): https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/js_backend/codegen/task.dart#newcode213 pkg/compiler/lib/src/js_backend/codegen/task.dart:213: applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); It works better with refinement ...
5 years ago (2015-12-10 18:32:14 UTC) #5
sra1
lgtm https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode754 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:754: /// True of the [length] is needed. ...
5 years ago (2015-12-10 19:09:40 UTC) #6
asgerf
https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1512303002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode754 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:754: /// True of the [length] is needed. On 2015/12/10 ...
5 years ago (2015-12-11 12:16:31 UTC) #7
asgerf
5 years ago (2015-12-14 13:41:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
f53ce36c3d260710001d4a6f080f5e7cd83624f4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698