v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Literal Class Reference

#include <ast.h>

Inheritance diagram for Literal:
Collaboration diagram for Literal:

Public Member Functions

virtual bool IsPropertyName ()
 
Handle< StringAsPropertyName ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
bool IsNull () const
 
bool IsTrue () const
 
bool IsFalse () const
 
Handle< Objecthandle () const
 
uint32_t Hash ()
 
- Public Member Functions inherited from Expression
virtual int position () const
 
virtual ExpressionAsExpression ()
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
Handle< MapGetMonomorphicReceiverType ()
 
unsigned id () const
 
unsigned test_id () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode ()
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual Type node_type () const
 
virtual DeclarationAsDeclaration ()
 
virtual StatementAsStatement ()
 
virtual TargetCollectorAsTargetCollector ()
 
virtual BreakableStatementAsBreakableStatement ()
 
virtual IterationStatementAsIterationStatement ()
 
virtual MaterializedLiteralAsMaterializedLiteral ()
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Static Public Member Functions

static bool Match (void *literal1, void *literal2)
 

Protected Member Functions

 Literal (Isolate *isolate, Handle< Object > handle)
 
- Protected Member Functions inherited from Expression
 Expression (Isolate *isolate)
 

Friends

template<class >
class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Public Attributes inherited from AstNode
static const int kNoNumber = -1
 
static const int kFunctionEntryId = 2
 
static const int kDeclarationsId = 3
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 

Detailed Description

Definition at line 1218 of file ast.h.

Constructor & Destructor Documentation

Literal ( Isolate isolate,
Handle< Object handle 
)
inlineprotected

Definition at line 1267 of file ast.h.

Member Function Documentation

Handle<String> AsPropertyName ( )
inline

Definition at line 1230 of file ast.h.

References ASSERT, and Handle< T >::cast().

uint32_t Hash ( )
inline
bool IsFalse ( ) const
inline

Definition at line 1247 of file ast.h.

References ASSERT.

bool IsNull ( ) const
inline

Definition at line 1239 of file ast.h.

References ASSERT.

virtual bool IsPropertyName ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1222 of file ast.h.

References String::AsArrayIndex(), and String::cast().

bool IsTrue ( ) const
inline

Definition at line 1243 of file ast.h.

References ASSERT.

static bool Match ( void *  literal1,
void *  literal2 
)
inlinestatic

Definition at line 1258 of file ast.h.

References v8::internal::s1, and v8::internal::s2.

Referenced by ObjectLiteral::CalculateEmitStore().

virtual bool ToBooleanIsFalse ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1236 of file ast.h.

virtual bool ToBooleanIsTrue ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1235 of file ast.h.

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1265 of file ast.h.


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