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

#include <ast.h>

Inheritance diagram for CountOperation:
Collaboration diagram for CountOperation:

Public Member Functions

bool is_prefix () const
 
bool is_postfix () const
 
Token::Value op () const
 
Token::Value binary_op ()
 
Expressionexpression () const
 
virtual int position () const
 
virtual void MarkAsStatement ()
 
void RecordTypeFeedback (TypeFeedbackOracle *oracle, Zone *znoe)
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
int AssignmentId () const
 
int CountId () const
 
- Public Member Functions inherited from Expression
virtual ExpressionAsExpression ()
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
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)
 

Protected Member Functions

 CountOperation (Isolate *isolate, Token::Value op, bool is_prefix, Expression *expr, int pos)
 
- 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 1790 of file ast.h.

Constructor & Destructor Documentation

CountOperation ( Isolate isolate,
Token::Value  op,
bool  is_prefix,
Expression expr,
int  pos 
)
inlineprotected

Definition at line 1818 of file ast.h.

Member Function Documentation

int AssignmentId ( ) const
inline

Definition at line 1812 of file ast.h.

Token::Value binary_op ( )
inline

Definition at line 1798 of file ast.h.

References v8::internal::ADD, and v8::internal::SUB.

int CountId ( ) const
inline

Definition at line 1813 of file ast.h.

Expression* expression ( ) const
inline

Definition at line 1802 of file ast.h.

virtual SmallMapList* GetReceiverTypes ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1809 of file ast.h.

bool is_postfix ( ) const
inline

Definition at line 1795 of file ast.h.

bool is_prefix ( ) const
inline

Definition at line 1794 of file ast.h.

virtual bool IsMonomorphic ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1808 of file ast.h.

virtual void MarkAsStatement ( )
inlinevirtual

Definition at line 1805 of file ast.h.

Token::Value op ( ) const
inline

Definition at line 1797 of file ast.h.

virtual int position ( ) const
inlinevirtual

Reimplemented from Expression.

Definition at line 1803 of file ast.h.

void RecordTypeFeedback ( TypeFeedbackOracle *  oracle,
Zone znoe 
)

Definition at line 458 of file ast.cc.

References v8::internal::kMaxKeyedPolymorphism.

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1816 of file ast.h.


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