V8 Project
v8::internal::SingletonLogger Class Reference

#include <preparse-data.h>

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

Public Member Functions

 SingletonLogger ()
 
virtual ~SingletonLogger ()
 
void Reset ()
 
virtual void LogFunction (int start, int end, int literals, int properties, StrictMode strict_mode)
 
virtual void LogMessage (int start, int end, const char *message, const char *argument_opt, bool is_reference_error)
 
bool has_error () const
 
int start () const
 
int end () const
 
int literals () const
 
int properties () const
 
StrictMode strict_mode () const
 
int is_reference_error () const
 
const char * message ()
 
const char * argument_opt () const
 
- Public Member Functions inherited from v8::internal::ParserRecorder
 ParserRecorder ()
 
virtual ~ParserRecorder ()
 

Private Attributes

bool has_error_
 
int start_
 
int end_
 
int literals_
 
int properties_
 
StrictMode strict_mode_
 
const char * message_
 
const char * argument_opt_
 
bool is_reference_error_
 

Detailed Description

Definition at line 45 of file preparse-data.h.

Constructor & Destructor Documentation

◆ SingletonLogger()

v8::internal::SingletonLogger::SingletonLogger ( )
inline

◆ ~SingletonLogger()

virtual v8::internal::SingletonLogger::~SingletonLogger ( )
inlinevirtual

Definition at line 49 of file preparse-data.h.

49 {}

Member Function Documentation

◆ argument_opt()

const char* v8::internal::SingletonLogger::argument_opt ( ) const
inline

Definition at line 104 of file preparse-data.h.

104  {
106  return argument_opt_;
107  }
#define DCHECK(condition)
Definition: logging.h:205

References argument_opt_, DCHECK, and has_error_.

Referenced by LogMessage(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ end()

int v8::internal::SingletonLogger::end ( ) const
inline

Definition at line 86 of file preparse-data.h.

86 { return end_; }

References end_.

Referenced by LogFunction(), LogMessage(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ has_error()

bool v8::internal::SingletonLogger::has_error ( ) const
inline

Definition at line 83 of file preparse-data.h.

83 { return has_error_; }

References has_error_.

Referenced by v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ is_reference_error()

int v8::internal::SingletonLogger::is_reference_error ( ) const
inline

Definition at line 99 of file preparse-data.h.

99 { return is_reference_error_; }

References is_reference_error_.

Referenced by LogMessage(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ literals()

int v8::internal::SingletonLogger::literals ( ) const
inline

Definition at line 87 of file preparse-data.h.

87  {
89  return literals_;
90  }

References DCHECK, has_error_, and literals_.

Referenced by LogFunction(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ LogFunction()

virtual void v8::internal::SingletonLogger::LogFunction ( int  start,
int  end,
int  literals,
int  properties,
StrictMode  strict_mode 
)
inlinevirtual

Implements v8::internal::ParserRecorder.

Definition at line 53 of file preparse-data.h.

References DCHECK, end(), end_, has_error_, literals(), literals_, properties(), properties_, start(), start_, strict_mode(), and strict_mode_.

+ Here is the call graph for this function:

◆ LogMessage()

virtual void v8::internal::SingletonLogger::LogMessage ( int  start,
int  end,
const char *  message,
const char *  argument_opt,
bool  is_reference_error 
)
inlinevirtual

Implements v8::internal::ParserRecorder.

Definition at line 69 of file preparse-data.h.

73  {
74  if (has_error_) return;
75  has_error_ = true;
76  start_ = start;
77  end_ = end;
78  message_ = message;
81  }
const char * argument_opt() const

References argument_opt(), argument_opt_, end(), end_, has_error_, is_reference_error(), is_reference_error_, message(), message_, start(), and start_.

+ Here is the call graph for this function:

◆ message()

const char* v8::internal::SingletonLogger::message ( )
inline

Definition at line 100 of file preparse-data.h.

100  {
102  return message_;
103  }

References DCHECK, has_error_, and message_.

Referenced by LogMessage(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ properties()

int v8::internal::SingletonLogger::properties ( ) const
inline

Definition at line 91 of file preparse-data.h.

91  {
93  return properties_;
94  }

References DCHECK, has_error_, and properties_.

Referenced by LogFunction(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ Reset()

void v8::internal::SingletonLogger::Reset ( )
inline

Definition at line 51 of file preparse-data.h.

51 { has_error_ = false; }

References has_error_.

◆ start()

int v8::internal::SingletonLogger::start ( ) const
inline

Definition at line 85 of file preparse-data.h.

85 { return start_; }

References start_.

Referenced by LogFunction(), LogMessage(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

◆ strict_mode()

StrictMode v8::internal::SingletonLogger::strict_mode ( ) const
inline

Definition at line 95 of file preparse-data.h.

95  {
97  return strict_mode_;
98  }

References DCHECK, has_error_, and strict_mode_.

Referenced by LogFunction(), and v8::internal::Parser::SkipLazyFunctionBody().

+ Here is the caller graph for this function:

Member Data Documentation

◆ argument_opt_

const char* v8::internal::SingletonLogger::argument_opt_
private

Definition at line 119 of file preparse-data.h.

Referenced by argument_opt(), and LogMessage().

◆ end_

int v8::internal::SingletonLogger::end_
private

Definition at line 112 of file preparse-data.h.

Referenced by end(), LogFunction(), and LogMessage().

◆ has_error_

bool v8::internal::SingletonLogger::has_error_
private

◆ is_reference_error_

bool v8::internal::SingletonLogger::is_reference_error_
private

Definition at line 120 of file preparse-data.h.

Referenced by is_reference_error(), and LogMessage().

◆ literals_

int v8::internal::SingletonLogger::literals_
private

Definition at line 114 of file preparse-data.h.

Referenced by literals(), and LogFunction().

◆ message_

const char* v8::internal::SingletonLogger::message_
private

Definition at line 118 of file preparse-data.h.

Referenced by LogMessage(), and message().

◆ properties_

int v8::internal::SingletonLogger::properties_
private

Definition at line 115 of file preparse-data.h.

Referenced by LogFunction(), and properties().

◆ start_

int v8::internal::SingletonLogger::start_
private

Definition at line 111 of file preparse-data.h.

Referenced by LogFunction(), LogMessage(), and start().

◆ strict_mode_

StrictMode v8::internal::SingletonLogger::strict_mode_
private

Definition at line 116 of file preparse-data.h.

Referenced by LogFunction(), and strict_mode().


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