Commit ec54d9a9 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Fix symbol printing in migration / generalization tracing

BUG=
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/176713006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19636 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b9e0b87a
...@@ -1576,7 +1576,12 @@ void Map::PrintGeneralization(FILE* file, ...@@ -1576,7 +1576,12 @@ void Map::PrintGeneralization(FILE* file,
PrintF(file, "[generalizing "); PrintF(file, "[generalizing ");
constructor_name()->PrintOn(file); constructor_name()->PrintOn(file);
PrintF(file, "] "); PrintF(file, "] ");
String::cast(instance_descriptors()->GetKey(modify_index))->PrintOn(file); Name* name = instance_descriptors()->GetKey(modify_index);
if (name->IsString()) {
String::cast(name)->PrintOn(file);
} else {
PrintF(file, "{symbol %p}", static_cast<void*>(name));
}
if (constant_to_field) { if (constant_to_field) {
PrintF(file, ":c->f"); PrintF(file, ":c->f");
} else { } else {
...@@ -1616,7 +1621,7 @@ void JSObject::PrintInstanceMigration(FILE* file, ...@@ -1616,7 +1621,7 @@ void JSObject::PrintInstanceMigration(FILE* file,
if (name->IsString()) { if (name->IsString()) {
String::cast(name)->PrintOn(file); String::cast(name)->PrintOn(file);
} else { } else {
PrintF(file, "???"); PrintF(file, "{symbol %p}", static_cast<void*>(name));
} }
PrintF(file, " "); PrintF(file, " ");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment