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

Issue 1507313006: dart2js cps: Add instruction for null 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 null checks. Currently we only instantiate the instruction for the null checks inserted for numeric operators. The corresponding instruction also exists in the tree IR, partly because there is no way to say "x.toString" with the current instruction set. BUG= R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/c5539316fbaca52eacb3cd2030aadd011cda032b

Patch Set 1 #

Patch Set 2 : Remove spurious change #

Total comments: 4

Patch Set 3 : Updated doc comments #

Patch Set 4 : Update GetIndex doc #

Patch Set 5 : Merge #

Patch Set 6 : Fix true/false misdocumentation about condition and do not emit call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -45 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 2 3 4 5 5 chunks +69 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 2 chunks +10 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart View 3 chunks +11 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 4 5 12 chunks +44 lines, -31 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_helpers.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart View 1 chunk +17 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 3 chunks +17 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 5 chunks +36 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
asgerf
5 years ago (2015-12-10 18:31:07 UTC) #4
asgerf
On 2015/12/10 18:31:07, asgerf wrote: Sorry for the overlap with the bounds check CL btw.
5 years ago (2015-12-10 18:32:19 UTC) #5
sra1
lgtm https://codereview.chromium.org/1507313006/diff/20001/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/1507313006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode1154 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:1154: /// an integer. Maybe say something about the ...
5 years ago (2015-12-11 03:34:06 UTC) #6
asgerf
https://codereview.chromium.org/1507313006/diff/20001/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/1507313006/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode1154 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:1154: /// an integer. On 2015/12/11 03:34:06, sra1 wrote: > ...
5 years ago (2015-12-11 10:15:40 UTC) #7
asgerf
5 years ago (2015-12-11 13:18:04 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
c5539316fbaca52eacb3cd2030aadd011cda032b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698