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

Unified Diff: runtime/vm/debugger_api_impl.cc

Issue 10800024: Fix Dart_GetClassInfo (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/platform/json.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_api_impl.cc
===================================================================
--- runtime/vm/debugger_api_impl.cc (revision 9748)
+++ runtime/vm/debugger_api_impl.cc (working copy)
@@ -465,7 +465,7 @@
return Api::NewError("%s: %d is not a valid class id",
CURRENT_FUNC, cls_id);
}
- Class& cls = Class::Handle(isolate->class_table()->At(cls_id));
+ Class& cls = Class::Handle(isolate, isolate->class_table()->At(cls_id));
if (class_name != NULL) {
*class_name = Api::NewHandle(isolate, cls.Name());
}
@@ -475,9 +475,9 @@
}
if (super_class_id != NULL) {
*super_class_id = 0;
- cls = cls.SuperClass();
- if (!cls.IsNull()) {
- *super_class_id = cls.id();
+ Class& super_cls = Class::Handle(isolate, cls.SuperClass());
+ if (!super_cls.IsNull()) {
+ *super_class_id = super_cls.id();
}
}
if (static_fields != NULL) {
« no previous file with comments | « runtime/platform/json.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698