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

Issue 1474373002: dart2js cps: Better runtime null checks for primitive operators. (Closed)

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

Description

dart2js cps: Better runtime null checks for primitive operators. Calls to numeric operators where the receiver might be null will now insert a specialized null check, like this: if (typeof x !== 'number') return x.$lt(); BUG= R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/94ed2c3a7d6c844d926364cc85154bc6ed374973

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -35 lines) Patch
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 5 chunks +81 lines, -35 lines 4 comments Download

Messages

Total messages: 6 (2 generated)
asgerf
5 years ago (2015-11-27 17:11:52 UTC) #2
sra1
lgtm Like with bounds checking, we should probably add a single primitive to summarize the ...
5 years ago (2015-11-27 18:34:38 UTC) #3
asgerf
I agree about having one instruction for the check. I've added it to our worklist. ...
5 years ago (2015-11-30 11:07:20 UTC) #4
asgerf
5 years ago (2015-11-30 11:08:43 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
94ed2c3a7d6c844d926364cc85154bc6ed374973 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698