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
ObjectLiteral Class Reference

#include <ast.h>

Inheritance diagram for ObjectLiteral:
Collaboration diagram for ObjectLiteral:

Data Structures

struct  Accessors
 
class  Property
 

Public Types

enum  Flags { kNoFlags = 0, kFastElements = 1, kHasFunction = 1 << 1 }
 
- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 

Public Member Functions

Handle< FixedArrayconstant_properties () const
 
ZoneList< Property * > * properties () const
 
bool fast_elements () const
 
bool has_function ()
 
void CalculateEmitStore (Zone *zone)
 
- Public Member Functions inherited from MaterializedLiteral
virtual MaterializedLiteralAsMaterializedLiteral ()
 
int literal_index ()
 
bool is_simple () const
 
int depth () const
 
- Public Member Functions inherited from Expression
virtual int position () const
 
virtual ExpressionAsExpression ()
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
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 ()
 
- 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)
 

Protected Member Functions

 ObjectLiteral (Isolate *isolate, Handle< FixedArray > constant_properties, ZoneList< Property * > *properties, int literal_index, bool is_simple, bool fast_elements, int depth, bool has_function)
 
- Protected Member Functions inherited from MaterializedLiteral
 MaterializedLiteral (Isolate *isolate, int literal_index, bool is_simple, int depth)
 
- Protected Member Functions inherited from Expression
 Expression (Isolate *isolate)
 

Friends

template<class >
class AstNodeFactory
 

Additional Inherited Members

- 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 1310 of file ast.h.

Member Enumeration Documentation

enum Flags
Enumerator
kNoFlags 
kFastElements 
kHasFunction 

Definition at line 1371 of file ast.h.

Constructor & Destructor Documentation

ObjectLiteral ( Isolate isolate,
Handle< FixedArray constant_properties,
ZoneList< Property * > *  properties,
int  literal_index,
bool  is_simple,
bool  fast_elements,
int  depth,
bool  has_function 
)
inlineprotected

Definition at line 1386 of file ast.h.

Member Function Documentation

Handle<FixedArray> constant_properties ( ) const
inline

Definition at line 1357 of file ast.h.

Referenced by CompileTimeValue::GetValue().

bool fast_elements ( ) const
inline

Definition at line 1362 of file ast.h.

Referenced by CompileTimeValue::GetValue().

bool has_function ( )
inline

Definition at line 1364 of file ast.h.

ZoneList<Property*>* properties ( ) const
inline

Definition at line 1360 of file ast.h.

Referenced by ObjectLiteral::CalculateEmitStore().

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1384 of file ast.h.


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