Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 1129) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -4963,6 +4963,9 @@ |
| const char* Instance::ToCString() const { |
| if (IsNull()) { |
| return "null"; |
| + } else if (Isolate::Current()->no_gc_scope_depth() > 0) { |
| + // Can occur when running disassembler. |
| + return "Instance"; |
| } else { |
| const char* kFormat = "Instance of '%s'"; |
| Class& cls = Class::Handle(clazz()); |