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

Issue 1235433004: VM: Inline Scavenger and PageSpace objects into Heap. (Closed)

Created:
5 years, 5 months ago by Florian Schneider
Modified:
5 years, 5 months ago
Reviewers:
koda
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

VM: Inline Scavenger and PageSpace objects into Heap. This allows accessing members from generated code via THR with one indirection less. (e.g. Scavenger::TopAddress, Scavenger::EndAddress) Currently, these addresses are still inlined into generated code, but for isolate-shared code those have to loaded indirectly via THR. It also avoids the extra new/delete for new_space_ and old_space_. Landed as part of https://codereview.chromium.org/1241863002/. BUG=

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -96 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/heap.h View 5 chunks +7 lines, -8 lines 0 comments Download
M runtime/vm/heap.cc View 20 chunks +77 lines, -81 lines 0 comments Download
M runtime/vm/pages.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/pages.cc View 2 chunks +3 lines, -2 lines 1 comment Download
M runtime/vm/scavenger.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/scavenger.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
Florian Schneider
5 years, 5 months ago (2015-07-15 13:55:34 UTC) #2
koda
Why not move them even closer to THR already? For now, we can cache Top/EndAddress ...
5 years, 5 months ago (2015-07-15 14:15:09 UTC) #3
koda
On 2015/07/15 14:15:09, koda wrote: > Why not move them even closer to THR already? ...
5 years, 5 months ago (2015-07-15 14:36:51 UTC) #4
Florian Schneider
On 2015/07/15 14:15:09, koda wrote: > Why not move them even closer to THR already? ...
5 years, 5 months ago (2015-07-16 08:12:59 UTC) #5
koda
lgtm Sure, that's fine. (Potential downsides is tighter include deps (thus build time) and less ...
5 years, 5 months ago (2015-07-16 13:43:38 UTC) #6
koda
https://codereview.chromium.org/1235433004/diff/1/runtime/vm/pages.cc File runtime/vm/pages.cc (right): https://codereview.chromium.org/1235433004/diff/1/runtime/vm/pages.cc#newcode175 runtime/vm/pages.cc:175: PageSpace::~PageSpace() { ... actually, we should probably move this ...
5 years, 5 months ago (2015-07-16 14:09:04 UTC) #7
Florian Schneider
5 years, 5 months ago (2015-07-17 13:16:08 UTC) #8
On 2015/07/16 13:43:38, koda wrote:
> lgtm
> 
> Sure, that's fine. (Potential downsides is tighter include deps (thus build
> time) and less control over construction/destruction order, but neither of
those
> are really any problem in this particular case. )

Thanks. Closing this since I landed it as part of
https://codereview.chromium.org/1241863002/.

Powered by Google App Engine
This is Rietveld 408576698