V8 Project
v8::internal::PreParserFactory Class Reference

#include <preparser.h>

+ Collaboration diagram for v8::internal::PreParserFactory:

Public Member Functions

 PreParserFactory (void *, void *, void *)
 
PreParserExpression NewStringLiteral (PreParserIdentifier identifier, int pos)
 
PreParserExpression NewNumberLiteral (double number, int pos)
 
PreParserExpression NewRegExpLiteral (PreParserIdentifier js_pattern, PreParserIdentifier js_flags, int literal_index, int pos)
 
PreParserExpression NewArrayLiteral (PreParserExpressionList values, int literal_index, int pos)
 
PreParserExpression NewObjectLiteralProperty (bool is_getter, PreParserExpression value, int pos, bool is_static)
 
PreParserExpression NewObjectLiteralProperty (PreParserExpression key, PreParserExpression value, bool is_static)
 
PreParserExpression NewObjectLiteral (PreParserExpressionList properties, int literal_index, int boilerplate_properties, bool has_function, int pos)
 
PreParserExpression NewVariableProxy (void *variable)
 
PreParserExpression NewProperty (PreParserExpression obj, PreParserExpression key, int pos)
 
PreParserExpression NewUnaryOperation (Token::Value op, PreParserExpression expression, int pos)
 
PreParserExpression NewBinaryOperation (Token::Value op, PreParserExpression left, PreParserExpression right, int pos)
 
PreParserExpression NewCompareOperation (Token::Value op, PreParserExpression left, PreParserExpression right, int pos)
 
PreParserExpression NewAssignment (Token::Value op, PreParserExpression left, PreParserExpression right, int pos)
 
PreParserExpression NewYield (PreParserExpression generator_object, PreParserExpression expression, Yield::Kind yield_kind, int pos)
 
PreParserExpression NewConditional (PreParserExpression condition, PreParserExpression then_expression, PreParserExpression else_expression, int pos)
 
PreParserExpression NewCountOperation (Token::Value op, bool is_prefix, PreParserExpression expression, int pos)
 
PreParserExpression NewCall (PreParserExpression expression, PreParserExpressionList arguments, int pos)
 
PreParserExpression NewCallNew (PreParserExpression expression, PreParserExpressionList arguments, int pos)
 
PreParserStatement NewReturnStatement (PreParserExpression expression, int pos)
 
PreParserExpression NewFunctionLiteral (PreParserIdentifier name, AstValueFactory *ast_value_factory, const PreParserScope &scope, PreParserStatementList body, int materialized_literal_count, int expected_property_count, int handler_count, int parameter_count, FunctionLiteral::ParameterFlag has_duplicate_parameters, FunctionLiteral::FunctionType function_type, FunctionLiteral::IsFunctionFlag is_function, FunctionLiteral::IsParenthesizedFlag is_parenthesized, FunctionKind kind, int position)
 
PreParserExpression NewClassLiteral (PreParserIdentifier name, PreParserExpression extends, PreParserExpression constructor, PreParserExpressionList properties, int position)
 
PreParserFactoryvisitor ()
 
BailoutReason dont_optimize_reason ()
 
intast_properties ()
 

Detailed Description

Definition at line 971 of file preparser.h.

Constructor & Destructor Documentation

◆ PreParserFactory()

v8::internal::PreParserFactory::PreParserFactory ( void *  ,
void *  ,
void *   
)
inline

Definition at line 973 of file preparser.h.

973 {}

Member Function Documentation

◆ ast_properties()

int* v8::internal::PreParserFactory::ast_properties ( )
inline

Definition at line 1098 of file preparser.h.

1098  {
1099  static int dummy = 42;
1100  return &dummy;
1101  }

◆ dont_optimize_reason()

BailoutReason v8::internal::PreParserFactory::dont_optimize_reason ( )
inline

Definition at line 1097 of file preparser.h.

1097 { return kNoReason; }

◆ NewArrayLiteral()

PreParserExpression v8::internal::PreParserFactory::NewArrayLiteral ( PreParserExpressionList  values,
int  literal_index,
int  pos 
)
inline

Definition at line 988 of file preparser.h.

990  {
992  }
static PreParserExpression Default()
Definition: preparser.h:678

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewAssignment()

PreParserExpression v8::internal::PreParserFactory::NewAssignment ( Token::Value  op,
PreParserExpression  left,
PreParserExpression  right,
int  pos 
)
inline

Definition at line 1036 of file preparser.h.

1039  {
1041  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewBinaryOperation()

PreParserExpression v8::internal::PreParserFactory::NewBinaryOperation ( Token::Value  op,
PreParserExpression  left,
PreParserExpression  right,
int  pos 
)
inline

Definition at line 1026 of file preparser.h.

1028  {
1029  return PreParserExpression::BinaryOperation(left, op, right);
1030  }
static PreParserExpression BinaryOperation(PreParserExpression left, Token::Value op, PreParserExpression right)
Definition: preparser.h:687

References v8::internal::PreParserExpression::BinaryOperation().

+ Here is the call graph for this function:

◆ NewCall()

PreParserExpression v8::internal::PreParserFactory::NewCall ( PreParserExpression  expression,
PreParserExpressionList  arguments,
int  pos 
)
inline

Definition at line 1060 of file preparser.h.

1062  {
1063  return PreParserExpression::Call();
1064  }
static PreParserExpression Call()
Definition: preparser.h:727

References v8::internal::PreParserExpression::Call().

+ Here is the call graph for this function:

◆ NewCallNew()

PreParserExpression v8::internal::PreParserFactory::NewCallNew ( PreParserExpression  expression,
PreParserExpressionList  arguments,
int  pos 
)
inline

Definition at line 1065 of file preparser.h.

1067  {
1069  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewClassLiteral()

PreParserExpression v8::internal::PreParserFactory::NewClassLiteral ( PreParserIdentifier  name,
PreParserExpression  extends,
PreParserExpression  constructor,
PreParserExpressionList  properties,
int  position 
)
inline

Definition at line 1086 of file preparser.h.

1090  {
1092  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewCompareOperation()

PreParserExpression v8::internal::PreParserFactory::NewCompareOperation ( Token::Value  op,
PreParserExpression  left,
PreParserExpression  right,
int  pos 
)
inline

Definition at line 1031 of file preparser.h.

1033  {
1035  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewConditional()

PreParserExpression v8::internal::PreParserFactory::NewConditional ( PreParserExpression  condition,
PreParserExpression  then_expression,
PreParserExpression  else_expression,
int  pos 
)
inline

Definition at line 1048 of file preparser.h.

1051  {
1053  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewCountOperation()

PreParserExpression v8::internal::PreParserFactory::NewCountOperation ( Token::Value  op,
bool  is_prefix,
PreParserExpression  expression,
int  pos 
)
inline

Definition at line 1054 of file preparser.h.

1057  {
1059  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewFunctionLiteral()

PreParserExpression v8::internal::PreParserFactory::NewFunctionLiteral ( PreParserIdentifier  name,
AstValueFactory ast_value_factory,
const PreParserScope scope,
PreParserStatementList  body,
int  materialized_literal_count,
int  expected_property_count,
int  handler_count,
int  parameter_count,
FunctionLiteral::ParameterFlag  has_duplicate_parameters,
FunctionLiteral::FunctionType  function_type,
FunctionLiteral::IsFunctionFlag  is_function,
FunctionLiteral::IsParenthesizedFlag  is_parenthesized,
FunctionKind  kind,
int  position 
)
inline

Definition at line 1074 of file preparser.h.

1083  {
1085  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewNumberLiteral()

PreParserExpression v8::internal::PreParserFactory::NewNumberLiteral ( double  number,
int  pos 
)
inline

Definition at line 978 of file preparser.h.

979  {
981  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewObjectLiteral()

PreParserExpression v8::internal::PreParserFactory::NewObjectLiteral ( PreParserExpressionList  properties,
int  literal_index,
int  boilerplate_properties,
bool  has_function,
int  pos 
)
inline

Definition at line 1003 of file preparser.h.

1007  {
1009  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewObjectLiteralProperty() [1/2]

PreParserExpression v8::internal::PreParserFactory::NewObjectLiteralProperty ( bool  is_getter,
PreParserExpression  value,
int  pos,
bool  is_static 
)
inline

Definition at line 993 of file preparser.h.

995  {
997  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewObjectLiteralProperty() [2/2]

PreParserExpression v8::internal::PreParserFactory::NewObjectLiteralProperty ( PreParserExpression  key,
PreParserExpression  value,
bool  is_static 
)
inline

Definition at line 998 of file preparser.h.

1000  {
1002  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewProperty()

PreParserExpression v8::internal::PreParserFactory::NewProperty ( PreParserExpression  obj,
PreParserExpression  key,
int  pos 
)
inline

Definition at line 1013 of file preparser.h.

1015  {
1016  if (obj.IsThis()) {
1018  }
1020  }
static PreParserExpression ThisProperty()
Definition: preparser.h:719
static PreParserExpression Property()
Definition: preparser.h:723

References v8::internal::PreParserExpression::IsThis(), v8::internal::PreParserExpression::Property(), and v8::internal::PreParserExpression::ThisProperty().

+ Here is the call graph for this function:

◆ NewRegExpLiteral()

PreParserExpression v8::internal::PreParserFactory::NewRegExpLiteral ( PreParserIdentifier  js_pattern,
PreParserIdentifier  js_flags,
int  literal_index,
int  pos 
)
inline

Definition at line 982 of file preparser.h.

985  {
987  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewReturnStatement()

PreParserStatement v8::internal::PreParserFactory::NewReturnStatement ( PreParserExpression  expression,
int  pos 
)
inline

Definition at line 1070 of file preparser.h.

1071  {
1072  return PreParserStatement::Default();
1073  }
static PreParserStatement Default()
Definition: preparser.h:880

References v8::internal::PreParserStatement::Default().

+ Here is the call graph for this function:

◆ NewStringLiteral()

PreParserExpression v8::internal::PreParserFactory::NewStringLiteral ( PreParserIdentifier  identifier,
int  pos 
)
inline

Definition at line 974 of file preparser.h.

975  {
977  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewUnaryOperation()

PreParserExpression v8::internal::PreParserFactory::NewUnaryOperation ( Token::Value  op,
PreParserExpression  expression,
int  pos 
)
inline

Definition at line 1021 of file preparser.h.

1023  {
1025  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewVariableProxy()

PreParserExpression v8::internal::PreParserFactory::NewVariableProxy ( void *  variable)
inline

Definition at line 1010 of file preparser.h.

1010  {
1012  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ NewYield()

PreParserExpression v8::internal::PreParserFactory::NewYield ( PreParserExpression  generator_object,
PreParserExpression  expression,
Yield::Kind  yield_kind,
int  pos 
)
inline

Definition at line 1042 of file preparser.h.

1045  {
1047  }

References v8::internal::PreParserExpression::Default().

+ Here is the call graph for this function:

◆ visitor()

PreParserFactory* v8::internal::PreParserFactory::visitor ( )
inline

Definition at line 1096 of file preparser.h.

1096 { return this; }

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