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

Issue 1289643005: Rename accessors of class Field to make it more apparent as to what is being accessed - static fiel… (Closed)

Created:
5 years, 4 months ago by siva
Modified:
5 years, 3 months ago
Reviewers:
rmacnak, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Changes to prepare for allowing script snapshots to be taken after running the main application: - Rename accessors of class Field to make it more apparent as to what is being accessed (static field values or instance field offsets - Use precompiled initializer state (Used only during precompilation) to also store saved initial value of static fields (Used only during application snapshot generation) BUG= R=hausner@google.com, rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/79ef28317f767934db88b27f86b2b76934d46ed6

Patch Set 1 #

Patch Set 2 : restore-initial-static-value #

Patch Set 3 : merge-to-tot #

Patch Set 4 : self-code-review #

Total comments: 14

Patch Set 5 : code-review-comments #

Patch Set 6 : cleanup #

Patch Set 7 : add-comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -151 lines) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/ast.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 6 chunks +10 lines, -8 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 5 4 chunks +8 lines, -7 lines 0 comments Download
M runtime/vm/constant_propagator.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_arm64.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 5 chunks +42 lines, -13 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 11 chunks +33 lines, -36 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 12 chunks +18 lines, -17 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 1 chunk +13 lines, -2 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 1 chunk +19 lines, -3 lines 0 comments Download
M runtime/vm/regexp_assembler_ir.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (1 generated)
siva
5 years, 3 months ago (2015-09-01 01:11:28 UTC) #2
hausner
Technically LGTM, but I have some reservations about the renaming of the accessors and raw ...
5 years, 3 months ago (2015-09-01 16:02:02 UTC) #3
rmacnak
https://codereview.chromium.org/1289643005/diff/60001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/1289643005/diff/60001/runtime/vm/object.h#newcode2828 runtime/vm/object.h:2828: RawInstance* StaticFieldValue() const; FWIW, the service protocol simply calls ...
5 years, 3 months ago (2015-09-01 16:54:56 UTC) #4
rmacnak
lgtm https://codereview.chromium.org/1289643005/diff/60001/runtime/vm/raw_object_snapshot.cc File runtime/vm/raw_object_snapshot.cc (right): https://codereview.chromium.org/1289643005/diff/60001/runtime/vm/raw_object_snapshot.cc#newcode824 runtime/vm/raw_object_snapshot.cc:824: writer->WriteObjectImpl(ptr()->initializer_.value_, kAsReference); On 2015/09/01 16:54:55, rmacnak wrote: > ...
5 years, 3 months ago (2015-09-01 18:28:51 UTC) #5
siva
I have addressed some of the long names concerns. I have left the union part ...
5 years, 3 months ago (2015-09-03 23:32:10 UTC) #6
rmacnak
lgtm
5 years, 3 months ago (2015-09-03 23:47:51 UTC) #7
hausner
Thanks for making the names a bit shorter. LGTM too.
5 years, 3 months ago (2015-09-04 16:46:26 UTC) #8
siva
5 years, 3 months ago (2015-09-04 18:03:51 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
79ef28317f767934db88b27f86b2b76934d46ed6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698