V8 Project
v8::internal::SimpleListPrinter Class Reference
+ Collaboration diagram for v8::internal::SimpleListPrinter:

Public Member Functions

 SimpleListPrinter (OStream &os)
 
void Add (const char *s)
 

Private Attributes

OStreamos_
 
bool first_
 

Detailed Description

Definition at line 482 of file code-stubs.cc.

Constructor & Destructor Documentation

◆ SimpleListPrinter()

v8::internal::SimpleListPrinter::SimpleListPrinter ( OStream os)
inlineexplicit

Definition at line 484 of file code-stubs.cc.

Member Function Documentation

◆ Add()

void v8::internal::SimpleListPrinter::Add ( const char *  s)
inline

Definition at line 486 of file code-stubs.cc.

486  {
487  if (first_) {
488  first_ = false;
489  } else {
490  os_ << ",";
491  }
492  os_ << s;
493  }

References first_, and os_.

Referenced by v8::internal::operator<<().

+ Here is the caller graph for this function:

Member Data Documentation

◆ first_

bool v8::internal::SimpleListPrinter::first_
private

Definition at line 497 of file code-stubs.cc.

Referenced by Add().

◆ os_

OStream& v8::internal::SimpleListPrinter::os_
private

Definition at line 496 of file code-stubs.cc.

Referenced by Add().


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