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

Unified Diff: runtime/vm/heap_test.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/heap.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap_test.cc
===================================================================
--- runtime/vm/heap_test.cc (revision 44579)
+++ runtime/vm/heap_test.cc (working copy)
@@ -213,7 +213,7 @@
public:
FindOnly(Isolate* isolate, RawObject* target)
: FindObjectVisitor(isolate), target_(target) {
- ASSERT(isolate->no_gc_scope_depth() != 0);
+ ASSERT(isolate->no_safepoint_scope_depth() != 0);
}
virtual ~FindOnly() { }
@@ -240,13 +240,13 @@
for (size_t space = 0; space < ARRAY_SIZE(spaces); ++space) {
const String& obj = String::Handle(String::New("x", spaces[space]));
{
- NoGCScope no_gc;
+ NoSafepointScope no_safepoint;
FindOnly find_only(isolate, obj.raw());
EXPECT(obj.raw() == heap->FindObject(&find_only));
}
}
{
- NoGCScope no_gc;
+ NoSafepointScope no_safepoint;
FindNothing find_nothing;
EXPECT(Object::null() == heap->FindObject(&find_nothing));
}
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698