V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::FunctionLiteral Class Referencefinal
Inheritance diagram for v8::internal::FunctionLiteral:
v8::internal::Expression v8::internal::AstNode v8::internal::ZoneObject

Public Types

enum  FunctionType {
  kAnonymousExpression, kNamedExpression, kDeclaration, kAccessorOrMethod,
  kWrapped
}
 
enum  IdType { kIdTypeInvalid = -1, kIdTypeTopLevel = 0 }
 
enum  ParameterFlag : uint8_t { kNoDuplicateParameters, kHasDuplicateParameters }
 
enum  EagerCompileHint : uint8_t { kShouldEagerCompile, kShouldLazyCompile }
 
- Public Types inherited from v8::internal::Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t { AST_NODE_LIST =(DECLARE_TYPE_ENUM) }
 

Public Member Functions

MaybeHandle< Stringname () const
 
Handle< Stringname (Isolate *isolate) const
 
bool has_shared_name () const
 
const AstConsStringraw_name () const
 
void set_raw_name (const AstConsString *name)
 
DeclarationScopescope () const
 
ZonePtrList< Statement > * body ()
 
void set_function_token_position (int pos)
 
int function_token_position () const
 
int start_position () const
 
int end_position () const
 
bool is_declaration () const
 
bool is_named_expression () const
 
bool is_anonymous_expression () const
 
void mark_as_iife ()
 
bool is_iife () const
 
bool is_toplevel () const
 
bool is_wrapped () const
 
LanguageMode language_mode () const
 
int expected_property_count ()
 
int parameter_count ()
 
int function_length ()
 
bool AllowsLazyCompilation ()
 
bool CanSuspend ()
 
std::unique_ptr< char[]> GetDebugName () const
 
Handle< Stringinferred_name () const
 
const AstConsStringraw_inferred_name ()
 
void set_inferred_name (Handle< String > inferred_name)
 
void set_raw_inferred_name (const AstConsString *raw_inferred_name)
 
bool pretenure () const
 
void set_pretenure ()
 
bool has_duplicate_parameters () const
 
bool ShouldEagerCompile () const
 
V8_EXPORT_PRIVATE void SetShouldEagerCompile ()
 
FunctionType function_type () const
 
FunctionKind kind () const
 
bool dont_optimize ()
 
BailoutReason dont_optimize_reason ()
 
void set_dont_optimize_reason (BailoutReason reason)
 
bool IsAnonymousFunctionDefinition () const
 
int suspend_count ()
 
void set_suspend_count (int suspend_count)
 
int return_position ()
 
int function_literal_id () const
 
void set_function_literal_id (int function_literal_id)
 
void set_requires_instance_members_initializer (bool value)
 
bool requires_instance_members_initializer () const
 
ProducedPreParsedScopeDataproduced_preparsed_scope_data () const
 
- Public Member Functions inherited from v8::internal::Expression
bool IsValidReferenceExpression () const
 
bool ToBooleanIsTrue () const
 
bool ToBooleanIsFalse () const
 
bool IsPropertyName () const
 
bool IsAnonymousFunctionDefinition () const
 
bool IsConciseMethodDefinition () const
 
bool IsAccessorFunctionDefinition () const
 
bool IsSmiLiteral () const
 
bool IsNumberLiteral () const
 
bool IsStringLiteral () const
 
bool IsNullLiteral () const
 
bool IsTheHoleLiteral () const
 
bool IsUndefinedLiteral () const
 
bool IsCompileTimeValue ()
 
bool IsPattern ()
 
bool is_parenthesized () const
 
void mark_parenthesized ()
 
- Public Member Functions inherited from v8::internal::AstNode
void * operator new (size_t size, Zone *zone)
 
NodeType node_type () const
 
int position () const
 
BreakableStatementAsBreakableStatement ()
 
IterationStatementAsIterationStatement ()
 
MaterializedLiteralAsMaterializedLiteral ()
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Static Public Member Functions

static bool NeedsHomeObject (Expression *expr)
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::Expression
 Expression (int pos, NodeType type)
 
- Protected Member Functions inherited from v8::internal::AstNode
 AstNode (int position, NodeType type)
 
- Protected Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 
- Static Protected Attributes inherited from v8::internal::Expression
static const uint8_t kNextBitFieldIndex = IsParenthesizedField::kNext
 
- Static Protected Attributes inherited from v8::internal::AstNode
static const uint8_t kNextBitFieldIndex = NodeTypeField::kNext
 

Detailed Description

Definition at line 2330 of file ast.h.


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