v8  3.14.5(node0.10.28)
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 ()
 
TypeFeedbackId LiteralFeedbackId () const
 
- Public Member Functions inherited from Expression
virtual int position () const
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
Handle< MapGetMonomorphicReceiverType ()
 
BailoutId id () const
 
TypeFeedbackId 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 =0
 
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)
 

Additional Inherited Members

- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 1149 of file ast.h.

Constructor & Destructor Documentation

Literal ( Isolate isolate,
Handle< Object handle 
)
inlineprotected

Definition at line 1198 of file ast.h.

Member Function Documentation

Handle<String> AsPropertyName ( )
inline

Definition at line 1161 of file ast.h.

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

uint32_t Hash ( )
inline
bool IsFalse ( ) const
inline

Definition at line 1178 of file ast.h.

References ASSERT.

bool IsNull ( ) const
inline

Definition at line 1170 of file ast.h.

References ASSERT.

virtual bool IsPropertyName ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1153 of file ast.h.

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

bool IsTrue ( ) const
inline

Definition at line 1174 of file ast.h.

References ASSERT.

TypeFeedbackId LiteralFeedbackId ( ) const
inline
static bool Match ( void *  literal1,
void *  literal2 
)
inlinestatic

Definition at line 1189 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 1167 of file ast.h.

virtual bool ToBooleanIsTrue ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1166 of file ast.h.


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