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

Issue 2535323002: Recognise x.==(null) and generate HIdentical (Closed)

Created:
4 years ago by sra1
Modified:
4 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Recognise x.==(null) and generate HIdentical This handles many of the kernel null-aware expansions, which do not map back to Ast nodes. R=efortuna@google.com, sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/9871523b6164c5c43db2779bc6901057723c81ae

Patch Set 1 #

Total comments: 4

Patch Set 2 : add comment #

Patch Set 3 : fix #

Patch Set 4 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M pkg/compiler/lib/src/ssa/builder_kernel.dart View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
sra1
+ 2481 | - 2185
4 years ago (2016-11-29 20:47:14 UTC) #4
sra1
4 years ago (2016-11-29 20:54:41 UTC) #6
Emily Fortuna
lgtm https://codereview.chromium.org/2535323002/diff/1/pkg/compiler/lib/src/ssa/builder_kernel.dart File pkg/compiler/lib/src/ssa/builder_kernel.dart (right): https://codereview.chromium.org/2535323002/diff/1/pkg/compiler/lib/src/ssa/builder_kernel.dart#newcode1501 pkg/compiler/lib/src/ssa/builder_kernel.dart:1501: // Handle `x == null` specially. can you ...
4 years ago (2016-11-29 20:57:45 UTC) #7
Siggi Cherem (dart-lang)
lgtm, woo hoo!
4 years ago (2016-11-29 21:13:54 UTC) #8
sra1
Committed patchset #4 (id:80001) manually as 9871523b6164c5c43db2779bc6901057723c81ae (presubmit successful).
4 years ago (2016-11-29 23:06:05 UTC) #10
sra1
4 years ago (2016-11-29 23:07:18 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2535323002/diff/1/pkg/compiler/lib/src/ssa/bu...
File pkg/compiler/lib/src/ssa/builder_kernel.dart (right):

https://codereview.chromium.org/2535323002/diff/1/pkg/compiler/lib/src/ssa/bu...
pkg/compiler/lib/src/ssa/builder_kernel.dart:1501: // Handle `x == null`
specially.
On 2016/11/29 20:57:45, Emily Fortuna wrote:
> can you elaborate in this comment why x == null is special? 

Done.

https://codereview.chromium.org/2535323002/diff/1/pkg/compiler/lib/src/ssa/bu...
pkg/compiler/lib/src/ssa/builder_kernel.dart:1522: }
On 2016/11/29 20:57:45, Emily Fortuna wrote:
> consider making this code block its own function just because it's
> self-contained for a specific case. (or not, your preference)

Done.

Powered by Google App Engine
This is Rietveld 408576698