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

Issue 2790603002: VM [KERNEL] Elide null-initialization of the fields (Closed)

Created:
3 years, 8 months ago by Dmitry Olshansky
Modified:
3 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM [KERNEL] Elide null-initialization of the fields They are filled with nulls after allocation, so there is no need to set a field to null explicitly. R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/82beee09c2bc537afd3438ed88a1387d6c36e62b

Patch Set 1 #

Total comments: 2

Patch Set 2 : VM [KERNEL] Elide null-initialization of the fields #

Total comments: 1

Patch Set 3 : VM [KERNEL] Elide null-initialization of the fields #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -12 lines) Patch
M runtime/vm/kernel_to_il.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 chunks +18 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Dmitry Olshansky
3 years, 8 months ago (2017-03-30 13:25:06 UTC) #2
Florian Schneider
https://codereview.chromium.org/2790603002/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2790603002/diff/1/runtime/vm/kernel_to_il.cc#newcode4094 runtime/vm/kernel_to_il.cc:4094: return elide_initialization ? Fragment() : instructions; dbc: If the ...
3 years, 8 months ago (2017-03-30 19:42:59 UTC) #4
Dmitry Olshansky
https://codereview.chromium.org/2790603002/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2790603002/diff/1/runtime/vm/kernel_to_il.cc#newcode4094 runtime/vm/kernel_to_il.cc:4094: return elide_initialization ? Fragment() : instructions; On 2017/03/30 19:42:59, ...
3 years, 8 months ago (2017-03-31 14:19:50 UTC) #5
Dmitry Olshansky
Redone to avoid generating IL for the null literal case.
3 years, 8 months ago (2017-03-31 14:44:41 UTC) #6
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2790603002/diff/20001/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2790603002/diff/20001/runtime/vm/kernel_to_il.cc#newcode4083 runtime/vm/kernel_to_il.cc:4083: Fragment initializer = TranslateExpression(init); Better init->IsNullLiteral() instead of ...
3 years, 8 months ago (2017-03-31 15:00:57 UTC) #7
Dmitry Olshansky
3 years, 8 months ago (2017-03-31 15:49:51 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
82beee09c2bc537afd3438ed88a1387d6c36e62b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698