Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 33179f5bf0efe00fae3cf0da9502ed2345a17268..e4aeb7b0c78fc3565c46827fc87d86cacd414166 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -3741,7 +3741,8 @@ class V8EXPORT Locker { |
| class V8EXPORT OutputStream { // NOLINT |
| public: |
| enum OutputEncoding { |
| - kAscii = 0 // 7-bit ASCII. |
| + kAscii = 0, // 7-bit ASCII. |
| + kUint32 = 1 |
| }; |
| enum WriteResult { |
| kContinue = 0, |
| @@ -3760,6 +3761,12 @@ class V8EXPORT OutputStream { // NOLINT |
| * will not be called in case writing was aborted. |
| */ |
| virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; |
| + /** |
| + * Writes the next chunk of heap stats data into the stream. Writing |
| + * can be stopped by returning kAbort as function result. EndOfStream |
| + * will not be called in case writing was aborted. |
| + */ |
| + virtual WriteResult WriteUint32Chunk(uint32_t* data, int size) = 0; |
|
mnaganov (inactive)
2012/04/12 13:32:26
Is this really data size or items count? Looking a
|
| }; |