Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index ab25299b78cf693bf3a66320734bb53e6faa9297..c04a3379234a6bd3bdd28149dc90daa954bc2643 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2203,7 +2203,8 @@ void TestContext::BuildBranch(HValue* value) { |
void HGraphBuilder::Bailout(const char* reason) { |
if (FLAG_trace_bailout) { |
- SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); |
+ SmartArrayPointer<char> name( |
+ info()->shared_info()->DebugName()->ToCString()); |
PrintF("Bailout in HGraphBuilder: @\"%s\": %s\n", *name, reason); |
} |
SetStackOverflow(); |
@@ -4433,8 +4434,10 @@ void HGraphBuilder::TraceInline(Handle<JSFunction> target, |
Handle<JSFunction> caller, |
const char* reason) { |
if (FLAG_trace_inlining) { |
- SmartPointer<char> target_name = target->shared()->DebugName()->ToCString(); |
- SmartPointer<char> caller_name = caller->shared()->DebugName()->ToCString(); |
+ SmartArrayPointer<char> target_name = |
+ target->shared()->DebugName()->ToCString(); |
+ SmartArrayPointer<char> caller_name = |
+ caller->shared()->DebugName()->ToCString(); |
if (reason == NULL) { |
PrintF("Inlined %s called from %s.\n", *target_name, *caller_name); |
} else { |