Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 312febc1aa5701d0de3d3a10534d809f0db74647..619c4bb288add937b697f53cf4c89c7e27b2dd90 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -433,6 +433,23 @@ void CompareNilICStub::Record(Handle<Object> object) { |
} |
+void CompareNilICStub::Types::TraceTransition(Types to) const { |
+ #ifdef DEBUG |
+ if (!FLAG_trace_ic) return; |
+ char buffer[100]; |
+ NoAllocationStringAllocator allocator(buffer, |
+ static_cast<unsigned>(sizeof(buffer))); |
+ StringStream stream(&allocator); |
+ stream.Add("[CompareNilIC : "); |
+ Print(&stream); |
+ stream.Add("=>"); |
+ to.Print(&stream); |
+ stream.Add("]\n"); |
+ stream.OutputToStdOut(); |
+ #endif |
+} |
+ |
+ |
void CompareNilICStub::PrintName(StringStream* stream) { |
stream->Add("CompareNilICStub_"); |
types_.Print(stream); |
@@ -577,17 +594,19 @@ void ToBooleanStub::Types::Print(StringStream* stream) const { |
void ToBooleanStub::Types::TraceTransition(Types to) const { |
+ #ifdef DEBUG |
if (!FLAG_trace_ic) return; |
char buffer[100]; |
NoAllocationStringAllocator allocator(buffer, |
static_cast<unsigned>(sizeof(buffer))); |
StringStream stream(&allocator); |
- stream.Add("[ToBooleanIC ("); |
+ stream.Add("[ToBooleanIC : "); |
Print(&stream); |
- stream.Add("->"); |
+ stream.Add("=>"); |
to.Print(&stream); |
- stream.Add(")]\n"); |
+ stream.Add("]\n"); |
stream.OutputToStdOut(); |
+ #endif |
} |