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

Unified Diff: runtime/vm/compiler.cc

Issue 1288853005: Fix disassembly_test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 44fbb112db7739fdd7086bc90baf91b23ddd3e31..8b289ead87bffae6b4da501a60a9eeac65f849e9 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -961,10 +961,18 @@ static void DisassembleCode(const Function& function, bool optimized) {
if (function.IsNull()) {
Class& cls = Class::Handle();
cls ^= code.owner();
- ISL_Print(" 0x%" Px ": allocation stub for %s, %p\n",
- start + offset.Value(),
- cls.ToCString(),
- code.raw());
+ if (cls.IsNull()) {
+ const String& code_name = String::Handle(code.Name());
+ ISL_Print(" 0x%" Px ": %s, %p\n",
+ start + offset.Value(),
+ code_name.ToCString(),
+ code.raw());
+ } else {
+ ISL_Print(" 0x%" Px ": allocation stub for %s, %p\n",
+ start + offset.Value(),
+ cls.ToCString(),
+ code.raw());
+ }
} else {
ISL_Print(" 0x%" Px ": %s, %p\n",
start + offset.Value(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698