v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Member Functions | |
Expression * | expression () const |
ZoneList< Expression * > * | arguments () const |
virtual int | position () const |
void | RecordTypeFeedback (TypeFeedbackOracle *oracle, CallKind call_kind) |
virtual SmallMapList * | GetReceiverTypes () |
virtual bool | IsMonomorphic () |
CheckType | check_type () const |
Handle< JSFunction > | target () |
Handle< JSObject > | holder () |
Handle< JSGlobalPropertyCell > | cell () |
bool | ComputeTarget (Handle< Map > type, Handle< String > name) |
bool | ComputeGlobalTarget (Handle< GlobalObject > global, LookupResult *lookup) |
int | ReturnId () const |
Public Member Functions inherited from Expression | |
virtual Expression * | AsExpression () |
virtual bool | IsValidLeftHandSide () |
virtual bool | ToBooleanIsTrue () |
virtual bool | ToBooleanIsFalse () |
virtual bool | IsPropertyName () |
virtual bool | ResultOverwriteAllowed () |
bool | IsSmiLiteral () |
bool | IsStringLiteral () |
bool | IsNullLiteral () |
Handle< Map > | GetMonomorphicReceiverType () |
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 Declaration * | AsDeclaration () |
virtual Statement * | AsStatement () |
virtual TargetCollector * | AsTargetCollector () |
virtual BreakableStatement * | AsBreakableStatement () |
virtual IterationStatement * | AsIterationStatement () |
virtual MaterializedLiteral * | AsMaterializedLiteral () |
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 | |
Call (Isolate *isolate, Expression *expression, ZoneList< Expression * > *arguments, 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) |
|
inlineprotected |
|
inline |
|
inline |
bool ComputeGlobalTarget | ( | Handle< GlobalObject > | global, |
LookupResult * | lookup | ||
) |
Definition at line 532 of file ast.cc.
References ASSERT, JSFunction::cast(), HEAP, v8::internal::NORMAL, and Handle< T >::null().
Definition at line 488 of file ast.cc.
References v8::internal::CALLBACKS, JSObject::cast(), v8::internal::CONSTANT_FUNCTION, v8::internal::CONSTANT_TRANSITION, v8::internal::FIELD, v8::internal::HANDLER, v8::internal::INTERCEPTOR, v8::internal::MAP_TRANSITION, v8::internal::NORMAL, Handle< T >::null(), v8::internal::NULL, v8::internal::NULL_DESCRIPTOR, and v8::internal::RECEIVER_MAP_CHECK.
|
inline |
|
inlinevirtual |
Reimplemented from Expression.
|
inlinevirtual |
Reimplemented from Expression.
|
inlinevirtual |
Reimplemented from Expression.
void RecordTypeFeedback | ( | TypeFeedbackOracle * | oracle, |
CallKind | call_kind | ||
) |
Definition at line 553 of file ast.cc.
References ASSERT, Handle< T >::cast(), FLAG_enable_slow_asserts, Literal::handle(), Handle< T >::is_null(), v8::internal::NULL, and v8::internal::RECEIVER_MAP_CHECK.
|
inline |
|
friend |