Index: src/string-stream.cc |
=================================================================== |
--- src/string-stream.cc (revision 2604) |
+++ src/string-stream.cc (working copy) |
@@ -153,7 +153,7 @@ |
} |
break; |
} |
- case 'i': case 'd': case 'u': case 'x': case 'c': case 'p': case 'X': { |
+ case 'i': case 'd': case 'u': case 'x': case 'c': case 'X': { |
int value = current.data_.u_int_; |
EmbeddedVector<char, 24> formatted; |
int length = OS::SNPrintF(formatted, temp.start(), value); |
@@ -167,6 +167,13 @@ |
Add(formatted.start()); |
break; |
} |
+ case 'p': { |
+ void* value = current.data_.u_pointer_; |
+ EmbeddedVector<char, 20> formatted; |
+ OS::SNPrintF(formatted, temp.start(), value); |
+ Add(formatted.start()); |
+ break; |
+ } |
default: |
UNREACHABLE(); |
break; |