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

Unified Diff: runtime/vm/raw_object.cc

Issue 10878037: - GET_NATIVE_ARGUMENT uses the isolate which is passed in to allocate the handle. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/native_entry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 11263)
+++ runtime/vm/raw_object.cc (working copy)
@@ -293,7 +293,7 @@
break;
}
} else {
- RawClass* raw_class = Isolate::Current()->class_table()->At(class_id);
+ RawClass* raw_class = visitor->isolate()->class_table()->At(class_id);
if (Class::IsSignatureClass(raw_class)) {
RawClosure* raw_obj = reinterpret_cast<RawClosure*>(this);
size = RawClosure::VisitClosurePointers(raw_obj, visitor);
@@ -590,7 +590,7 @@
ObjectPointerVisitor* visitor) {
// Make sure that we got here with the tagged pointer as this.
ASSERT(raw_obj->IsHeapObject());
- RawClass* cls = Isolate::Current()->class_table()->At(raw_obj->GetClassId());
+ RawClass* cls = visitor->isolate()->class_table()->At(raw_obj->GetClassId());
intptr_t instance_size = cls->ptr()->instance_size_;
intptr_t num_native_fields = cls->ptr()->num_native_fields_;
« no previous file with comments | « runtime/vm/native_entry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698