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

Issue 2489723003: Run field initializers for new instance fields after a reload (Closed)

Created:
4 years, 1 month ago by Cutch
Modified:
4 years, 1 month ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Run field initializers for new instance fields after a reload - [x] When performing a reload, track new fields with initializing expressions. - [x] After a reload, run the initializing expressions for each new field on all instances of the class. - [x] Unit tests (heart beat, throwing, and syntax errors) - [x] Add some utility methods to Function, Field, and Script. - [x] Fix a major bug in instance morphing and class hierarchy traversal. Fixes #27666 BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/a776600362b6711be3fe2afa8facba021e1b9b0b

Patch Set 1 #

Total comments: 11

Patch Set 2 : rmacnak review #

Patch Set 3 : one more syntax error test #

Patch Set 4 : Fix a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -29 lines) Patch
M runtime/vm/isolate_reload.h View 1 4 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 1 5 chunks +96 lines, -15 lines 0 comments Download
M runtime/vm/isolate_reload_test.cc View 1 2 3 1 chunk +291 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 5 chunks +16 lines, -2 lines 0 comments Download
M runtime/vm/object.cc View 1 8 chunks +65 lines, -11 lines 0 comments Download
M runtime/vm/object_reload.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
Cutch
4 years, 1 month ago (2016-11-08 23:12:44 UTC) #4
rmacnak
https://codereview.chromium.org/2489723003/diff/1/runtime/vm/isolate_reload.cc File runtime/vm/isolate_reload.cc (right): https://codereview.chromium.org/2489723003/diff/1/runtime/vm/isolate_reload.cc#newcode166 runtime/vm/isolate_reload.cc:166: eval_func ^= Function::EvaluateHelper(to_, to_ -> field.owner to get the ...
4 years, 1 month ago (2016-11-09 00:36:32 UTC) #5
Cutch
PTAL. https://codereview.chromium.org/2489723003/diff/1/runtime/vm/isolate_reload.cc File runtime/vm/isolate_reload.cc (right): https://codereview.chromium.org/2489723003/diff/1/runtime/vm/isolate_reload.cc#newcode166 runtime/vm/isolate_reload.cc:166: eval_func ^= Function::EvaluateHelper(to_, On 2016/11/09 00:36:32, rmacnak wrote: ...
4 years, 1 month ago (2016-11-09 23:20:58 UTC) #8
Cutch
*PING*
4 years, 1 month ago (2016-11-11 21:18:46 UTC) #9
rmacnak
lgtm
4 years, 1 month ago (2016-11-11 22:22:33 UTC) #10
Cutch
4 years, 1 month ago (2016-11-14 21:33:27 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
a776600362b6711be3fe2afa8facba021e1b9b0b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698