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

#include <ast.h>

Inheritance diagram for UnaryOperation:
Collaboration diagram for UnaryOperation:

Public Member Functions

virtual bool ResultOverwriteAllowed ()
 
Token::Value op () const
 
Expressionexpression () const
 
virtual int position () const
 
int MaterializeTrueId ()
 
int MaterializeFalseId ()
 
- Public Member Functions inherited from Expression
virtual ExpressionAsExpression ()
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
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)
 

Protected Member Functions

 UnaryOperation (Isolate *isolate, Token::Value op, Expression *expression, 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 1705 of file ast.h.

Constructor & Destructor Documentation

UnaryOperation ( Isolate isolate,
Token::Value  op,
Expression expression,
int  pos 
)
inlineprotected

Definition at line 1721 of file ast.h.

References ASSERT, AstNode::GetNextId(), and Token::IsUnaryOp().

Member Function Documentation

Expression* expression ( ) const
inline

Definition at line 1712 of file ast.h.

int MaterializeFalseId ( )
inline

Definition at line 1716 of file ast.h.

int MaterializeTrueId ( )
inline

Definition at line 1715 of file ast.h.

Token::Value op ( ) const
inline

Definition at line 1711 of file ast.h.

virtual int position ( ) const
inlinevirtual

Reimplemented from Expression.

Definition at line 1713 of file ast.h.

bool ResultOverwriteAllowed ( )
virtual

Reimplemented from Expression.

Definition at line 278 of file ast.cc.

References v8::internal::SUB.

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1719 of file ast.h.


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