![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <ast.h>


Public Types | |
| enum | Context { kUninitialized, kEffect, kValue, kTest } |
Public Types inherited from AstNode | |
| enum | NodeType { kInvalid = -1 } |
Public Member Functions | |
| virtual bool | IsValidLeftHandSide () |
| virtual bool | ToBooleanIsTrue () |
| virtual bool | ToBooleanIsFalse () |
| virtual bool | IsPropertyName () |
| virtual bool | ResultOverwriteAllowed () |
| bool | IsSmiLiteral () |
| bool | IsStringLiteral () |
| bool | IsNullLiteral () |
| bool | IsUndefinedLiteral (Isolate *isolate) |
| Bounds | bounds () |
| void | set_bounds (Bounds bounds) |
| virtual bool | IsMonomorphic () |
| virtual SmallMapList * | GetReceiverTypes () |
| virtual KeyedAccessStoreMode | GetStoreMode () |
| virtual void | RecordToBooleanTypeFeedback (TypeFeedbackOracle *oracle) |
| byte | to_boolean_types () const |
| BailoutId | id () const |
| TypeFeedbackId | test_id () const |
Public Member Functions inherited from AstNode | |
| void * | operator new (size_t size, Zone *zone) |
| AstNode (int position) | |
| virtual | ~AstNode () |
| virtual void | Accept (AstVisitor *v)=0 |
| virtual NodeType | node_type () const =0 |
| int | position () const |
| 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 | |
| Expression (Zone *zone, int pos) | |
| void | set_to_boolean_types (byte types) |
Additional Inherited Members | |
Static Protected Member Functions inherited from AstNode | |
| static int | GetNextId (Zone *zone) |
| static int | ReserveIdRange (Zone *zone, int n) |
| static TypeFeedbackId | reuse (BailoutId id) |
|
inlineprotected |
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, and V8_FINAL< kOperandKind, kNumCachedOperands >.
Definition at line 364 of file ast.h.
References v8::internal::NULL, and UNREACHABLE.
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, and V8_FINAL< kOperandKind, kNumCachedOperands >.
Definition at line 368 of file ast.h.
References v8::internal::STANDARD_STORE, and UNREACHABLE.
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, and V8_FINAL< kOperandKind, kNumCachedOperands >.
Definition at line 360 of file ast.h.
References UNREACHABLE.
| bool IsNullLiteral | ( | ) |
Definition at line 69 of file ast.cc.
References Value::IsNull(), and v8::internal::NULL.
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.
Definition at line 337 of file ast.h.
Referenced by ParserTraits::PushPropertyName().
| bool IsSmiLiteral | ( | ) |
Definition at line 59 of file ast.cc.
References v8::internal::NULL.
| bool IsStringLiteral | ( | ) |
Definition at line 64 of file ast.cc.
References Value::IsString(), and v8::internal::NULL.
| bool IsUndefinedLiteral | ( | Isolate * | isolate | ) |
Definition at line 74 of file ast.cc.
References Isolate::heap(), Variable::location(), v8::internal::NULL, and Variable::UNALLOCATED.
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >, and V8_FINAL< kOperandKind, kNumCachedOperands >.
|
virtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >, and V8_FINAL< kOperandKind, kNumCachedOperands >.
Definition at line 590 of file ast.cc.
References Expression::test_id(), and TypeFeedbackOracle::ToBooleanTypes().
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.
|
inline |
Definition at line 378 of file ast.h.
Referenced by Expression::RecordToBooleanTypeFeedback().
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.
|
inlinevirtual |
Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.