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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1105273002: Fix disassembly page after profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/observatory/lib/src/elements/code_view.dart ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 19bfd20f5edbd3c6f99384ce8fdee369c6f1b77f..27835474194afbb9b38ca5728ceaf8d18b4af163 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -2614,7 +2614,7 @@ class Code extends ServiceObject {
/// a [ServiceError].
Future<ServiceObject> reload() {
assert(kind != null);
- if (kind == CodeKind.Dart) {
+ if (isDartCode) {
// We only reload Dart code.
return super.reload();
}
@@ -2753,6 +2753,8 @@ class Code extends ServiceObject {
@reflectable bool get isDartCode => (kind == CodeKind.Dart) ||
(kind == CodeKind.Stub);
+
+ String toString() => 'Code($kind, $name)';
}
« no previous file with comments | « runtime/observatory/lib/src/elements/code_view.dart ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698