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

Unified Diff: runtime/vm/object_graph.cc

Issue 1016503005: Rename NoGCScope -> NoSafepointScope. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/object.cc ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_graph.cc
===================================================================
--- runtime/vm/object_graph.cc (revision 44579)
+++ runtime/vm/object_graph.cc (working copy)
@@ -171,7 +171,7 @@
void ObjectGraph::IterateObjects(ObjectGraph::Visitor* visitor) {
- NoGCScope no_gc_scope_;
+ NoSafepointScope no_safepoint_scope_;
Stack stack(isolate());
isolate()->VisitObjectPointers(&stack, false, false);
stack.TraverseGraph(visitor);
@@ -181,7 +181,7 @@
void ObjectGraph::IterateObjectsFrom(const Object& root,
ObjectGraph::Visitor* visitor) {
- NoGCScope no_gc_scope_;
+ NoSafepointScope no_safepoint_scope_;
Stack stack(isolate());
RawObject* root_raw = root.raw();
stack.VisitPointer(&root_raw);
@@ -256,7 +256,7 @@
// We cannot use a GrowableObjectArray, since we must not trigger GC.
RetainingPathVisitor(RawObject* obj, const Array& path)
: obj_(obj), path_(path), length_(0) {
- ASSERT(Isolate::Current()->no_gc_scope_depth() != 0);
+ ASSERT(Isolate::Current()->no_safepoint_scope_depth() != 0);
}
intptr_t length() const { return length_; }
@@ -291,7 +291,7 @@
intptr_t ObjectGraph::RetainingPath(Object* obj, const Array& path) {
- NoGCScope no_gc_scope_;
+ NoSafepointScope no_safepoint_scope_;
// To break the trivial path, the handle 'obj' is temporarily cleared during
// the search, but restored before returning.
RawObject* raw = obj->raw();
@@ -313,7 +313,7 @@
Object* scratch)
: ObjectVisitor(isolate), ObjectPointerVisitor(isolate), source_(NULL),
target_(target), references_(references), scratch_(scratch), length_(0) {
- ASSERT(Isolate::Current()->no_gc_scope_depth() != 0);
+ ASSERT(Isolate::Current()->no_safepoint_scope_depth() != 0);
}
intptr_t length() const { return length_; }
@@ -365,7 +365,7 @@
intptr_t ObjectGraph::InboundReferences(Object* obj, const Array& references) {
Object& scratch = Object::Handle();
- NoGCScope no_gc_scope_;
+ NoSafepointScope no_safepoint_scope_;
InboundReferencesVisitor visitor(isolate(), obj->raw(), references, &scratch);
isolate()->heap()->IterateObjects(&visitor);
return visitor.length();
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698