v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::PreParserExpression Class Reference

#include <preparser.h>

Collaboration diagram for v8::internal::PreParserExpression:

Public Member Functions

 PreParserExpression ()
 
bool IsNull () const
 
bool IsFailureExpression () const
 
bool IsIdentifier () const
 
PreParserIdentifier AsIdentifier () const
 
bool IsAssignment () const
 
bool IsPattern () const
 
bool IsStringLiteral () const
 
bool IsThis () const
 
bool IsThisProperty () const
 
bool IsProperty () const
 
bool IsPrivateReference () const
 
bool IsCall () const
 
bool IsSuperCallReference () const
 
bool IsImportCallExpression () const
 
bool IsFunctionLiteral () const
 
bool IsCallNew () const
 
bool is_tagged_template () const
 
bool is_parenthesized () const
 
void mark_parenthesized ()
 
void clear_parenthesized ()
 
PreParserExpressionAsCall ()
 
PreParserExpressionAsFunctionLiteral ()
 
PreParserExpressionoperator-> ()
 
void SetShouldEagerCompile ()
 
int position () const
 
void set_function_token_position (int position)
 
void set_suspend_count (int suspend_count)
 

Static Public Member Functions

static PreParserExpression Null ()
 
static PreParserExpression Failure ()
 
static PreParserExpression Default ()
 
static PreParserExpression FromIdentifier (const PreParserIdentifier &id)
 
static PreParserExpression Assignment ()
 
static PreParserExpression ObjectLiteral ()
 
static PreParserExpression ArrayLiteral ()
 
static PreParserExpression StringLiteral ()
 
static PreParserExpression This ()
 
static PreParserExpression ThisPrivateReference ()
 
static PreParserExpression ThisProperty ()
 
static PreParserExpression Property ()
 
static PreParserExpression PrivateReference ()
 
static PreParserExpression Call ()
 
static PreParserExpression CallEval ()
 
static PreParserExpression ImportCall ()
 
static PreParserExpression SuperCallReference ()
 

Private Types

enum  Type {
  kNull , kFailure , kExpression , kIdentifierExpression ,
  kStringLiteralExpression , kArrayOrObjectLiteralExpression
}
 
enum  ExpressionType {
  kThisExpression , kThisPropertyExpression , kThisPrivateReferenceExpression , kPropertyExpression ,
  kPrivateReferenceExpression , kCallExpression , kCallEvalExpression , kSuperCallReference ,
  kAssignment , kImportCallExpression
}
 
using TypeField = base::BitField<Type, 0, 3>
 
using IsParenthesizedField = TypeField::Next<bool, 1>
 
using ExpressionTypeField = IsParenthesizedField::Next<ExpressionType, 4>
 
using IdentifierTypeField
 
using HasCoverInitializedNameField = IsParenthesizedField::Next<bool, 1>
 

Private Member Functions

 PreParserExpression (uint32_t expression_code)
 

Private Attributes

uint32_t code_
 

Friends

class PreParser
 
class PreParserFactory
 
class PreParserExpressionList
 

Detailed Description

Definition at line 83 of file preparser.h.

Member Typedef Documentation

◆ ExpressionTypeField

◆ HasCoverInitializedNameField

◆ IdentifierTypeField

Initial value:

Definition at line 311 of file preparser.h.

◆ IsParenthesizedField

◆ TypeField

Definition at line 299 of file preparser.h.

Member Enumeration Documentation

◆ ExpressionType

Enumerator
kThisExpression 
kThisPropertyExpression 
kThisPrivateReferenceExpression 
kPropertyExpression 
kPrivateReferenceExpression 
kCallExpression 
kCallEvalExpression 
kSuperCallReference 
kAssignment 
kImportCallExpression 

Definition at line 282 of file preparser.h.

◆ Type

Enumerator
kNull 
kFailure 
kExpression 
kIdentifierExpression 
kStringLiteralExpression 
kArrayOrObjectLiteralExpression 

Definition at line 273 of file preparser.h.

Constructor & Destructor Documentation

◆ PreParserExpression() [1/2]

v8::internal::PreParserExpression::PreParserExpression ( )
inline

Definition at line 85 of file preparser.h.

Here is the caller graph for this function:

◆ PreParserExpression() [2/2]

v8::internal::PreParserExpression::PreParserExpression ( uint32_t expression_code)
inlineexplicitprivate

Definition at line 295 of file preparser.h.

Member Function Documentation

◆ ArrayLiteral()

static PreParserExpression v8::internal::PreParserExpression::ArrayLiteral ( )
inlinestatic

Definition at line 111 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AsCall()

PreParserExpression * v8::internal::PreParserExpression::AsCall ( )
inline

Definition at line 258 of file preparser.h.

◆ AsFunctionLiteral()

PreParserExpression * v8::internal::PreParserExpression::AsFunctionLiteral ( )
inline

Definition at line 259 of file preparser.h.

◆ AsIdentifier()

PreParserIdentifier v8::internal::PreParserExpression::AsIdentifier ( ) const
inline

Definition at line 181 of file preparser.h.

Here is the call graph for this function:

◆ Assignment()

static PreParserExpression v8::internal::PreParserExpression::Assignment ( )
inlinestatic

Definition at line 101 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Call()

static PreParserExpression v8::internal::PreParserExpression::Call ( )
inlinestatic

Definition at line 149 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CallEval()

static PreParserExpression v8::internal::PreParserExpression::CallEval ( )
inlinestatic

Definition at line 154 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear_parenthesized()

void v8::internal::PreParserExpression::clear_parenthesized ( )
inline

Definition at line 254 of file preparser.h.

Here is the call graph for this function:

◆ Default()

static PreParserExpression v8::internal::PreParserExpression::Default ( )
inlinestatic

Definition at line 92 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Failure()

static PreParserExpression v8::internal::PreParserExpression::Failure ( )
inlinestatic

Definition at line 88 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromIdentifier()

static PreParserExpression v8::internal::PreParserExpression::FromIdentifier ( const PreParserIdentifier & id)
inlinestatic

Definition at line 96 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImportCall()

static PreParserExpression v8::internal::PreParserExpression::ImportCall ( )
inlinestatic

Definition at line 160 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_parenthesized()

bool v8::internal::PreParserExpression::is_parenthesized ( ) const
inline

Definition at line 248 of file preparser.h.

Here is the call graph for this function:

◆ is_tagged_template()

bool v8::internal::PreParserExpression::is_tagged_template ( ) const
inline

Definition at line 246 of file preparser.h.

◆ IsAssignment()

bool v8::internal::PreParserExpression::IsAssignment ( ) const
inline

Definition at line 186 of file preparser.h.

Here is the call graph for this function:

◆ IsCall()

bool v8::internal::PreParserExpression::IsCall ( ) const
inline

Definition at line 227 of file preparser.h.

Here is the call graph for this function:

◆ IsCallNew()

bool v8::internal::PreParserExpression::IsCallNew ( ) const
inline

Definition at line 245 of file preparser.h.

◆ IsFailureExpression()

bool v8::internal::PreParserExpression::IsFailureExpression ( ) const
inline

Definition at line 173 of file preparser.h.

Here is the call graph for this function:

◆ IsFunctionLiteral()

bool v8::internal::PreParserExpression::IsFunctionLiteral ( ) const
inline

Definition at line 244 of file preparser.h.

◆ IsIdentifier()

bool v8::internal::PreParserExpression::IsIdentifier ( ) const
inline

Definition at line 177 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsImportCallExpression()

bool v8::internal::PreParserExpression::IsImportCallExpression ( ) const
inline

Definition at line 238 of file preparser.h.

Here is the call graph for this function:

◆ IsNull()

bool v8::internal::PreParserExpression::IsNull ( ) const
inline

Definition at line 172 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPattern()

bool v8::internal::PreParserExpression::IsPattern ( ) const
inline

Definition at line 191 of file preparser.h.

Here is the call graph for this function:

◆ IsPrivateReference()

bool v8::internal::PreParserExpression::IsPrivateReference ( ) const
inline

Definition at line 220 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsProperty()

bool v8::internal::PreParserExpression::IsProperty ( ) const
inline

Definition at line 211 of file preparser.h.

Here is the call graph for this function:

◆ IsStringLiteral()

bool v8::internal::PreParserExpression::IsStringLiteral ( ) const
inline

Definition at line 195 of file preparser.h.

Here is the call graph for this function:

◆ IsSuperCallReference()

bool v8::internal::PreParserExpression::IsSuperCallReference ( ) const
inline

Definition at line 233 of file preparser.h.

Here is the call graph for this function:

◆ IsThis()

bool v8::internal::PreParserExpression::IsThis ( ) const
inline

Definition at line 199 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsThisProperty()

bool v8::internal::PreParserExpression::IsThisProperty ( ) const
inline

Definition at line 204 of file preparser.h.

Here is the call graph for this function:

◆ mark_parenthesized()

void v8::internal::PreParserExpression::mark_parenthesized ( )
inline

Definition at line 250 of file preparser.h.

Here is the call graph for this function:

◆ Null()

static PreParserExpression v8::internal::PreParserExpression::Null ( )
inlinestatic

Definition at line 87 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ObjectLiteral()

static PreParserExpression v8::internal::PreParserExpression::ObjectLiteral ( )
inlinestatic

Definition at line 106 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator->()

PreParserExpression * v8::internal::PreParserExpression::operator-> ( )
inline

Definition at line 263 of file preparser.h.

◆ position()

int v8::internal::PreParserExpression::position ( ) const
inline

Definition at line 268 of file preparser.h.

◆ PrivateReference()

static PreParserExpression v8::internal::PreParserExpression::PrivateReference ( )
inlinestatic

Definition at line 143 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Property()

static PreParserExpression v8::internal::PreParserExpression::Property ( )
inlinestatic

Definition at line 137 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_function_token_position()

void v8::internal::PreParserExpression::set_function_token_position ( int position)
inline

Definition at line 269 of file preparser.h.

◆ set_suspend_count()

void v8::internal::PreParserExpression::set_suspend_count ( int suspend_count)
inline

Definition at line 270 of file preparser.h.

◆ SetShouldEagerCompile()

void v8::internal::PreParserExpression::SetShouldEagerCompile ( )
inline

Definition at line 266 of file preparser.h.

◆ StringLiteral()

static PreParserExpression v8::internal::PreParserExpression::StringLiteral ( )
inlinestatic

Definition at line 116 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SuperCallReference()

static PreParserExpression v8::internal::PreParserExpression::SuperCallReference ( )
inlinestatic

Definition at line 166 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ This()

static PreParserExpression v8::internal::PreParserExpression::This ( )
inlinestatic

Definition at line 120 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThisPrivateReference()

static PreParserExpression v8::internal::PreParserExpression::ThisPrivateReference ( )
inlinestatic

Definition at line 125 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThisProperty()

static PreParserExpression v8::internal::PreParserExpression::ThisProperty ( )
inlinestatic

Definition at line 131 of file preparser.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ PreParser

friend class PreParser
friend

Definition at line 316 of file preparser.h.

◆ PreParserExpressionList

friend class PreParserExpressionList
friend

Definition at line 318 of file preparser.h.

◆ PreParserFactory

friend class PreParserFactory
friend

Definition at line 317 of file preparser.h.

Member Data Documentation

◆ code_

uint32_t v8::internal::PreParserExpression::code_
private

Definition at line 315 of file preparser.h.


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