V8 Project
v8::internal::AstString Class Referenceabstract

#include <ast-value-factory.h>

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

Public Member Functions

virtual ~AstString ()
 
virtual int length () const =0
 
bool IsEmpty () const
 
virtual void Internalize (Isolate *isolate)=0
 
Handle< Stringstring () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Protected Attributes

Handle< Stringstring_
 

Detailed Description

Definition at line 43 of file ast-value-factory.h.

Constructor & Destructor Documentation

◆ ~AstString()

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

Definition at line 45 of file ast-value-factory.h.

45 {}

Member Function Documentation

◆ Internalize()

virtual void v8::internal::AstString::Internalize ( Isolate isolate)
pure virtual

◆ IsEmpty()

bool v8::internal::AstString::IsEmpty ( ) const
inline

Definition at line 48 of file ast-value-factory.h.

48 { return length() == 0; }
virtual int length() const =0

References length().

Referenced by v8::internal::AstValue::BooleanValue(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::debug_name(), and v8::internal::Scope::MustAllocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ length()

virtual int v8::internal::AstString::length ( ) const
pure virtual

Implemented in v8::internal::AstConsString, and v8::internal::AstRawString.

Referenced by IsEmpty(), v8::internal::AstConsString::length(), and v8::internal::FuncNameInferrer::MakeNameFromStackHelper().

+ Here is the caller graph for this function:

◆ string()

Handle<String> v8::internal::AstString::string ( ) const
inline

Definition at line 54 of file ast-value-factory.h.

54  {
55  DCHECK(!string_.is_null());
56  return string_;
57  }
Handle< String > string_
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and string_.

Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::debug_name(), v8::internal::AstValue::Internalize(), v8::internal::AstConsString::Internalize(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::name(), v8::internal::Variable::name(), v8::internal::Parser::ThrowPendingError(), and v8::internal::AstValue::value().

+ Here is the caller graph for this function:

Member Data Documentation

◆ string_


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