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

Issue 1498933002: Delete patch classes once they are applied (Closed)

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

Description

There are about 60 patch classes in the libraries. Running dart2js causes about 25 of them to be compiled and applied, so we get rid of 25 of 60 Class objects. Committed: https://github.com/dart-lang/sdk/commit/0bbfe1e23be56aad4a62cf6f7fea95a0a1efbb78

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Remember scripts of deleted patch classes #

Patch Set 4 : Add comments. #

Patch Set 5 : Now it works #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -28 lines) Patch
M runtime/vm/compiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 chunks +59 lines, -22 lines 4 comments Download
M runtime/vm/parser.cc View 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
hausner
5 years ago (2015-12-03 21:05:29 UTC) #4
hausner
Added change: keep scripts of deleted patch classes.
5 years ago (2015-12-04 01:44:40 UTC) #5
hausner
Committed patchset #5 (id:80001) manually as 0bbfe1e23be56aad4a62cf6f7fea95a0a1efbb78 (presubmit successful).
5 years ago (2015-12-04 21:11:40 UTC) #7
hausner
We discussed the change in person. I'll address any additional feedback in a follow-on CL. ...
5 years ago (2015-12-04 21:53:06 UTC) #8
Ivan Posva
LGTMwC -ip https://codereview.chromium.org/1498933002/diff/80001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1498933002/diff/80001/runtime/vm/object.cc#newcode9375 runtime/vm/object.cc:9375: const Script& patch_script = Script::Handle(pc.script()); Why is ...
5 years ago (2015-12-08 09:11:14 UTC) #9
hausner
5 years ago (2015-12-08 17:00:15 UTC) #10
Message was sent while issue was closed.
Thanks for taking a good look I will include the changes in my next CL.

https://codereview.chromium.org/1498933002/diff/80001/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/1498933002/diff/80001/runtime/vm/object.cc#ne...
runtime/vm/object.cc:9375: const Script& patch_script =
Script::Handle(pc.script());
On 2015/12/08 09:11:14, Ivan Posva wrote:
> Why is this not just
> Script::Handle(cls.script());
> ?

D'uh! I changed this code a few times and apparently didn't see the forest for
the trees anymore.

https://codereview.chromium.org/1498933002/diff/80001/runtime/vm/object.cc#ne...
runtime/vm/object.cc:9819: owner_script ^= Script::Cast(entry).raw();
On 2015/12/08 09:11:14, Ivan Posva wrote:
> Why is the ^= operator needed here?

Good catch. Will remove.

Powered by Google App Engine
This is Rietveld 408576698