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

Unified Diff: runtime/vm/object.cc

Issue 583583007: 1. Add user tag to the pointers traversed in the object store (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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/isolate.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 40496)
+++ runtime/vm/object.cc (working copy)
@@ -20334,16 +20334,15 @@
RawUserTag* UserTag::DefaultTag() {
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
- ASSERT(isolate->object_store() != NULL);
- if (isolate->object_store()->default_tag() != UserTag::null()) {
+ if (isolate->default_tag() != UserTag::null()) {
// Already created.
- return isolate->object_store()->default_tag();
+ return isolate->default_tag();
}
// Create default tag.
const UserTag& result = UserTag::Handle(isolate,
UserTag::New(Symbols::Default()));
ASSERT(result.tag() == UserTags::kDefaultUserTag);
- isolate->object_store()->set_default_tag(result);
+ isolate->set_default_tag(result);
return result.raw();
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698