V8 Project
v8::internal::DebugSnapshotSink Class Reference

#include <snapshot-source-sink.h>

+ Inheritance diagram for v8::internal::DebugSnapshotSink:
+ Collaboration diagram for v8::internal::DebugSnapshotSink:

Public Member Functions

 DebugSnapshotSink (SnapshotByteSink *chained)
 
virtual void Put (byte b, const char *description) OVERRIDE
 
virtual int Position () OVERRIDE
 
- Public Member Functions inherited from v8::internal::SnapshotByteSink
virtual ~SnapshotByteSink ()
 
virtual void PutSection (int b, const char *description)
 
void PutInt (uintptr_t integer, const char *description)
 
void PutRaw (byte *data, int number_of_bytes, const char *description)
 
void PutBlob (byte *data, int number_of_bytes, const char *description)
 

Private Attributes

SnapshotByteSinksink_
 

Detailed Description

Definition at line 99 of file snapshot-source-sink.h.

Constructor & Destructor Documentation

◆ DebugSnapshotSink()

v8::internal::DebugSnapshotSink::DebugSnapshotSink ( SnapshotByteSink chained)
inlineexplicit

Definition at line 101 of file snapshot-source-sink.h.

101 : sink_(chained) {}

Member Function Documentation

◆ Position()

virtual int v8::internal::DebugSnapshotSink::Position ( )
inlinevirtual

Implements v8::internal::SnapshotByteSink.

Definition at line 103 of file snapshot-source-sink.h.

103 { return sink_->Position(); }

References v8::internal::SnapshotByteSink::Position(), and sink_.

+ Here is the call graph for this function:

◆ Put()

void v8::internal::DebugSnapshotSink::Put ( byte  b,
const char *  description 
)
virtual

Implements v8::internal::SnapshotByteSink.

Definition at line 93 of file snapshot-source-sink.cc.

93  {
94  PrintF("%24s: %x\n", description, b);
95  sink_->Put(b, description);
96 }
virtual void Put(byte b, const char *description)=0
void PrintF(const char *format,...)
Definition: utils.cc:80

References v8::internal::PrintF().

+ Here is the call graph for this function:

Member Data Documentation

◆ sink_

SnapshotByteSink* v8::internal::DebugSnapshotSink::sink_
private

Definition at line 106 of file snapshot-source-sink.h.

Referenced by Position().


The documentation for this class was generated from the following files: