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

Unified Diff: runtime/vm/handles_impl.h

Issue 177093010: Use a tag bit for indicating prologue weak persistent handles, this avoids (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/handles.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/handles_impl.h
===================================================================
--- runtime/vm/handles_impl.h (revision 33249)
+++ runtime/vm/handles_impl.h (working copy)
@@ -49,18 +49,19 @@
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
void Handles<kHandleSizeInWords,
kHandlesPerChunk,
- kOffsetOfRawPtr>::Visit(HandleVisitor* visitor) {
+ kOffsetOfRawPtr>::Visit(HandleVisitor* visitor,
+ bool is_prologue_weak) {
// Visit all zone handles.
HandlesBlock* block = zone_blocks_;
while (block != NULL) {
- block->Visit(visitor);
+ block->Visit(visitor, is_prologue_weak);
block = block->next_block();
}
// Visit all scoped handles.
block = &first_scoped_block_;
do {
- block->Visit(visitor);
+ block->Visit(visitor, is_prologue_weak);
block = block->next_block();
} while (block != NULL);
}
@@ -341,10 +342,11 @@
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
void Handles<kHandleSizeInWords,
kHandlesPerChunk,
- kOffsetOfRawPtr>::HandlesBlock::Visit(HandleVisitor* visitor) {
+ kOffsetOfRawPtr>::HandlesBlock::Visit(HandleVisitor* visitor,
+ bool is_prologue_weak) {
ASSERT(visitor != NULL);
for (intptr_t i = 0; i < next_handle_slot_; i += kHandleSizeInWords) {
- visitor->VisitHandle(reinterpret_cast<uword>(&data_[i]));
+ visitor->VisitHandle(reinterpret_cast<uword>(&data_[i]), is_prologue_weak);
}
}
« no previous file with comments | « runtime/vm/handles.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698