v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PreParserTraits Class Reference

#include <preparser.h>

Inheritance diagram for PreParserTraits:

Data Structures

struct  Type
 

Public Member Functions

 PreParserTraits (PreParser *pre_parser)
 
void CheckStrictModeLValue (PreParserExpression expression, bool *ok)
 
bool ShortcutNumericLiteralBinaryExpression (PreParserExpression *x, PreParserExpression y, Token::Value op, int pos, PreParserFactory *factory)
 
PreParserExpression BuildUnaryExpression (PreParserExpression expression, Token::Value op, int pos, PreParserFactory *factory)
 
void ReportMessageAt (Scanner::Location location, const char *message, Vector< const char * > args, bool is_reference_error=false)
 
void ReportMessageAt (Scanner::Location location, const char *type, const char *name_opt, bool is_reference_error=false)
 
void ReportMessageAt (int start_pos, int end_pos, const char *type, const char *name_opt, bool is_reference_error=false)
 
PreParserIdentifier GetSymbol (Scanner *scanner)
 
PreParserExpression ExpressionFromString (int pos, Scanner *scanner, PreParserFactory *factory=NULL)
 
PreParserExpression ParseV8Intrinsic (bool *ok)
 
PreParserExpression ParseFunctionLiteral (PreParserIdentifier name, Scanner::Location function_name_location, bool name_is_strict_reserved, bool is_generator, int function_token_position, FunctionLiteral::FunctionType type, bool *ok)
 

Static Public Member Functions

template<typename FunctionState >
static void SetUpFunctionState (FunctionState *function_state, void *)
 
template<typename FunctionState >
static void TearDownFunctionState (FunctionState *function_state)
 
static bool IsEvalOrArguments (PreParserIdentifier identifier)
 
static bool IsThisProperty (PreParserExpression expression)
 
static bool IsIdentifier (PreParserExpression expression)
 
static bool IsBoilerplateProperty (PreParserExpression property)
 
static bool IsArrayIndex (PreParserIdentifier string, uint32_t *index)
 
static void PushLiteralName (FuncNameInferrer *fni, PreParserIdentifier id)
 
static void PushPropertyName (FuncNameInferrer *fni, PreParserExpression expression)
 
static void CheckFunctionLiteralInsideTopLevelObjectLiteral (PreParserScope *scope, PreParserExpression value, bool *has_function)
 
static void CheckAssigningFunctionLiteralToProperty (PreParserExpression left, PreParserExpression right)
 
static void CheckPossibleEvalCall (PreParserExpression expression, PreParserScope *scope)
 
static PreParserExpression MarkExpressionAsLValue (PreParserExpression expression)
 
static PreParserIdentifier EmptyIdentifier ()
 
static PreParserExpression EmptyExpression ()
 
static PreParserExpression EmptyLiteral ()
 
static PreParserExpressionList NullExpressionList ()
 
static PreParserExpression GetLiteralTheHole (int position, PreParserFactory *factory)
 
static PreParserIdentifier NextLiteralString (Scanner *scanner, PretenureFlag tenured)
 
static PreParserExpression ThisExpression (PreParserScope *scope, PreParserFactory *factory)
 
static PreParserExpression ExpressionFromLiteral (Token::Value token, int pos, Scanner *scanner, PreParserFactory *factory)
 
static PreParserExpression ExpressionFromIdentifier (PreParserIdentifier name, int pos, PreParserScope *scope, PreParserFactory *factory)
 
static PreParserExpressionList NewExpressionList (int size, void *zone)
 
static PreParserExpressionList NewPropertyList (int size, void *zone)
 

Detailed Description

Definition at line 797 of file preparser.h.

Constructor & Destructor Documentation

PreParserTraits ( PreParser pre_parser)
inlineexplicit

Definition at line 825 of file preparser.h.

Member Function Documentation

PreParserExpression BuildUnaryExpression ( PreParserExpression  expression,
Token::Value  op,
int  pos,
PreParserFactory factory 
)
inline

Definition at line 898 of file preparser.h.

References PreParserExpression::Default().

static void CheckAssigningFunctionLiteralToProperty ( PreParserExpression  left,
PreParserExpression  right 
)
inlinestatic

Definition at line 872 of file preparser.h.

static void CheckFunctionLiteralInsideTopLevelObjectLiteral ( PreParserScope scope,
PreParserExpression  value,
bool *  has_function 
)
inlinestatic

Definition at line 869 of file preparser.h.

static void CheckPossibleEvalCall ( PreParserExpression  expression,
PreParserScope scope 
)
inlinestatic

Definition at line 876 of file preparser.h.

static PreParserExpression EmptyExpression ( )
inlinestatic

Definition at line 923 of file preparser.h.

References PreParserExpression::Default().

static PreParserIdentifier EmptyIdentifier ( )
inlinestatic

Definition at line 920 of file preparser.h.

References PreParserIdentifier::Default().

static PreParserExpression EmptyLiteral ( )
inlinestatic

Definition at line 926 of file preparser.h.

References PreParserExpression::Default().

static PreParserExpression ExpressionFromIdentifier ( PreParserIdentifier  name,
int  pos,
PreParserScope scope,
PreParserFactory factory 
)
inlinestatic

Definition at line 957 of file preparser.h.

References PreParserExpression::FromIdentifier().

static PreParserExpression ExpressionFromLiteral ( Token::Value  token,
int  pos,
Scanner scanner,
PreParserFactory factory 
)
inlinestatic

Definition at line 951 of file preparser.h.

References PreParserExpression::Default().

PreParserExpression ExpressionFromString ( int  pos,
Scanner scanner,
PreParserFactory factory = NULL 
)
static PreParserExpression GetLiteralTheHole ( int  position,
PreParserFactory factory 
)
inlinestatic

Definition at line 934 of file preparser.h.

References PreParserExpression::Default().

static bool IsArrayIndex ( PreParserIdentifier  string,
uint32_t *  index 
)
inlinestatic

Definition at line 853 of file preparser.h.

static bool IsBoilerplateProperty ( PreParserExpression  property)
inlinestatic

Definition at line 848 of file preparser.h.

static bool IsEvalOrArguments ( PreParserIdentifier  identifier)
inlinestatic

Definition at line 835 of file preparser.h.

References PreParserIdentifier::IsEvalOrArguments().

static bool IsIdentifier ( PreParserExpression  expression)
inlinestatic

Definition at line 844 of file preparser.h.

References PreParserExpression::IsIdentifier().

static bool IsThisProperty ( PreParserExpression  expression)
inlinestatic

Definition at line 840 of file preparser.h.

References PreParserExpression::IsThisProperty().

static PreParserExpression MarkExpressionAsLValue ( PreParserExpression  expression)
inlinestatic

Definition at line 879 of file preparser.h.

static PreParserExpressionList NewExpressionList ( int  size,
void *  zone 
)
inlinestatic

Definition at line 967 of file preparser.h.

static PreParserExpressionList NewPropertyList ( int  size,
void *  zone 
)
inlinestatic

Definition at line 971 of file preparser.h.

static PreParserIdentifier NextLiteralString ( Scanner scanner,
PretenureFlag  tenured 
)
inlinestatic

Definition at line 941 of file preparser.h.

References PreParserIdentifier::Default().

static PreParserExpressionList NullExpressionList ( )
inlinestatic

Definition at line 929 of file preparser.h.

PreParserExpression ParseFunctionLiteral ( PreParserIdentifier  name,
Scanner::Location  function_name_location,
bool  name_is_strict_reserved,
bool  is_generator,
int  function_token_position,
FunctionLiteral::FunctionType  type,
bool *  ok 
)

Definition at line 135 of file preparser.cc.

PreParserExpression ParseV8Intrinsic ( bool *  ok)

Definition at line 130 of file preparser.cc.

static void PushLiteralName ( FuncNameInferrer fni,
PreParserIdentifier  id 
)
inlinestatic

Definition at line 859 of file preparser.h.

References UNREACHABLE.

static void PushPropertyName ( FuncNameInferrer fni,
PreParserExpression  expression 
)
inlinestatic

Definition at line 863 of file preparser.h.

References UNREACHABLE.

void ReportMessageAt ( Scanner::Location  location,
const char *  message,
Vector< const char * >  args,
bool  is_reference_error = false 
)
void ReportMessageAt ( Scanner::Location  location,
const char *  type,
const char *  name_opt,
bool  is_reference_error = false 
)
void ReportMessageAt ( int  start_pos,
int  end_pos,
const char *  type,
const char *  name_opt,
bool  is_reference_error = false 
)

Definition at line 91 of file preparser.cc.

References ParserBase< Traits >::log_, and ParserRecorder::LogMessage().

static void SetUpFunctionState ( FunctionState *  function_state,
void *   
)
inlinestatic

Definition at line 830 of file preparser.h.

bool ShortcutNumericLiteralBinaryExpression ( PreParserExpression x,
PreParserExpression  y,
Token::Value  op,
int  pos,
PreParserFactory factory 
)
inline

Definition at line 890 of file preparser.h.

static void TearDownFunctionState ( FunctionState *  function_state)
inlinestatic

Definition at line 832 of file preparser.h.

static PreParserExpression ThisExpression ( PreParserScope scope,
PreParserFactory factory 
)
inlinestatic

Definition at line 946 of file preparser.h.

References PreParserExpression::This().


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