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

Issue 2693863006: VM: Restore old implementation of ClassID.cid* fields (Closed)

Created:
3 years, 10 months ago by Vyacheslav Egorov (Google)
Modified:
3 years, 10 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Restore old implementation of ClassID.cid* fields. When we were implementing bootstraping from Kernel in https://github.com/dart-lang/sdk/commit/23fd1a184b393825f29444243780f3593ce0b3c1 we switched ClassID.cid* fields to become 'static final' lazily initialized fields instead of constants as they were before. This was mainly done to allow dartk compile patched_sdk - because these fields were previously injected in runtime and never existed in the text form. However this regressed code quality for app-jit and app-aot snapshots because 'static final' fields are reset by snapshotting so resulting code contains InitStaticField and LoadStaticField instructions. BUG= R=kustermann@google.com Committed: https://github.com/dart-lang/sdk/commit/364b8575de8718940a0afa16549329aab6ea9674

Patch Set 1 #

Patch Set 2 : Done #

Total comments: 2

Patch Set 3 : Done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -53 lines) Patch
M runtime/lib/class_id.cc View 1 2 1 chunk +0 lines, -20 lines 0 comments Download
M runtime/lib/class_id.dart View 1 1 chunk +1 line, -9 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/kernel_reader.cc View 1 1 chunk +31 lines, -22 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 chunks +33 lines, -0 lines 0 comments Download
M tools/patch_sdk.dart View 1 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Vyacheslav Egorov (Google)
PTAL
3 years, 10 months ago (2017-02-16 15:49:43 UTC) #3
kustermann
lgtm :-/ https://codereview.chromium.org/2693863006/diff/20001/tools/patch_sdk.dart File tools/patch_sdk.dart (right): https://codereview.chromium.org/2693863006/diff/20001/tools/patch_sdk.dart#newcode260 tools/patch_sdk.dart:260: final injectedCidFields = [ String https://codereview.chromium.org/2693863006/diff/20001/tools/patch_sdk.dart#newcode285 tools/patch_sdk.dart:285: ...
3 years, 10 months ago (2017-02-16 15:59:45 UTC) #4
Vyacheslav Egorov (Google)
Peter, this change FYI.
3 years, 10 months ago (2017-02-16 15:59:57 UTC) #5
ahe
On 2017/02/16 15:59:57, Vyacheslav Egorov (Google) wrote: > Peter, this change FYI. Thank you. Having ...
3 years, 10 months ago (2017-02-16 16:07:04 UTC) #6
Vyacheslav Egorov (Google)
3 years, 10 months ago (2017-02-16 16:43:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
364b8575de8718940a0afa16549329aab6ea9674 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698