Home | History | Annotate | Download | only in src

Lines Matching refs:Parser

38 #include "parser.h"
252 Handle<String> Parser::LookupSymbol(int symbol_id) {
271 Handle<String> Parser::LookupCachedSymbol(int symbol_id) {
414 Scope* Parser::NewScope(Scope* parent, ScopeType scope_type) {
423 // Parser's target_stack_ (the stack of potential 'break' and
466 // FunctionState and BlockState together implement the parser's scope stack.
467 // The parser's current scope is in top_scope_. The BlockState and
469 // pop. They are also used to hold the parser's per-function and per-block
472 class Parser::BlockState BASE_EMBEDDED {
474 BlockState(Parser* parser, Scope* scope)
475 : parser_(parser),
476 outer_scope_(parser->top_scope_) {
477 parser->top_scope_ = scope;
483 Parser* parser_;
488 Parser::FunctionState::FunctionState(Parser* parser,
495 parser_(parser),
496 outer_function_state_(parser->current_function_state_),
497 outer_scope_(parser->top_scope_),
499 factory_(isolate, parser->zone()) {
500 parser->top_scope_ = scope;
501 parser->current_function_state_ = this;
506 Parser::FunctionState::~FunctionState() {
536 // Implementation of Parser
538 Parser::Parser(CompilationInfo* info)
567 FunctionLiteral* Parser::ParseProgram() {
579 // Initialize parser state.
613 FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info,
703 FunctionLiteral* Parser::ParseLazy() {
713 // Initialize parser state.
738 FunctionLiteral* Parser::ParseLazy(Utf16CharacterStream* source) {
797 Handle<String> Parser::GetSymbol() {
806 void Parser::ReportMessage(const char* message, Vector<const char*> args) {
812 void Parser::ReportMessage(const char* message, Vector<Handle<String> > args) {
818 void Parser::ReportMessageAt(Scanner::Location source_location,
836 void Parser::ReportMessageAt(Scanner::Location source_location,
853 void* Parser::ParseSourceElements(ZoneList<Statement*>* processor,
934 Statement* Parser::ParseModuleElement(ZoneStringList* labels,
982 Statement* Parser::ParseModuleDeclaration(ZoneStringList* names, bool* ok) {
1018 Module* Parser
1045 Module* Parser::ParseModuleLiteral(bool* ok) {
1100 Module* Parser::ParseModulePath(bool* ok) {
1135 Module* Parser::ParseModuleVariable(bool* ok) {
1153 Module* Parser::ParseModuleUrl(bool* ok) {
1182 Module* Parser::ParseModuleSpecifier(bool* ok) {
1195 Block* Parser::ParseImportDeclaration(bool* ok) {
1248 Statement* Parser::ParseExportDeclaration(bool* ok) {
1323 Statement* Parser::ParseBlockElement(ZoneStringList* labels,
1348 Statement* Parser::ParseStatement(ZoneStringList* labels, bool* ok) {
1459 VariableProxy* Parser::NewUnresolved(
1471 void Parser::Declare(Declaration* declaration, bool resolve, bool* ok) {
1633 Statement* Parser::ParseNativeDeclaration(bool* ok) {
1671 Statement* Parser::ParseFunctionDeclaration(ZoneStringList* names, bool* ok) {
1705 Block* Parser::ParseBlock(ZoneStringList* labels, bool* ok) {
1730 Block* Parser::ParseScopedBlock(ZoneStringList* labels, bool* ok) {
1764 Block* Parser::ParseVariableStatement(VariableDeclarationContext var_context,
1778 bool Parser::IsEvalOrArguments(Handle<String> string) {
1789 Block* Parser::ParseVariableDeclarations(
2126 Statement* Parser::ParseExpressionOrLabelledStatement(ZoneStringList* labels,
2195 IfStatement* Parser::ParseIfStatement(ZoneStringList* labels, bool* ok) {
2217 Statement* Parser::ParseContinueStatement(bool* ok) {
2248 Statement* Parser::ParseBreakStatement(ZoneStringList* labels, bool* ok) {
2285 Statement* Parser::ParseReturnStatement(bool* ok) {
2334 Statement* Parser::ParseWithStatement(ZoneStringList* labels, bool* ok) {
2363 CaseClause* Parser::ParseCaseClause(bool* default_seen_ptr, bool* ok) {
2397 SwitchStatement* Parser::ParseSwitchStatement(ZoneStringList* labels,
2425 Statement* Parser::ParseThrowStatement(bool* ok) {
2444 TryStatement* Parser::ParseTryStatement(bool* ok) {
2558 DoWhileStatement* Parser::ParseDoWhileStatement(ZoneStringList* labels,
2586 WhileStatement* Parser::ParseWhileStatement(ZoneStringList* labels, bool* ok) {
2604 bool Parser::CheckInOrOf(bool accept_OF,
2618 void Parser::InitializeForEachStatement(ForEachStatement* stmt,
2687 Statement* Parser::ParseForStatement(ZoneStringList* labels, bool* ok) {
2893 Expression* Parser::ParseExpression(bool accept_IN, bool* ok) {
2910 Expression* Parser::ParseAssignmentExpression(bool accept_IN, bool* ok) {
2988 Expression* Parser::ParseYieldExpression(bool* ok) {
3007 Expression* Parser::ParseConditionalExpression(bool accept_IN, bool* ok) {
3013 // We start using the binary expression parser for prec >= 4 only!
3036 Expression* Parser::ParseBinaryExpression(int prec, bool accept_IN, bool* ok) {
3129 Expression* Parser::ParseUnaryExpression(bool* ok) {
3237 Expression* Parser::ParsePostfixExpression(bool* ok) {
3271 Expression* Parser::ParseLeftHandSideExpression(bool* ok) {
3349 Expression* Parser::ParseNewPrefix(PositionStack* stack, bool* ok) {
3359 // member expression parser, which is only allowed to match argument
3380 Expression* Parser::ParseNewExpression(bool* ok) {
3386 Expression* Parser::ParseMemberExpression(bool* ok) {
3391 Expression* Parser::ParseMemberWithNewPrefixesExpression(PositionStack* stack,
3464 DebuggerStatement* Parser::ParseDebuggerStatement(bool* ok) {
3478 void Parser::ReportUnexpectedToken(Token::Value token) {
3513 void Parser::ReportInvalidPreparseData(Handle<String> name, bool* ok) {
3522 Expression* Parser::ParsePrimaryExpression(bool* ok) {
3639 Expression* Parser::ParseArrayLiteral(bool* ok) {
3710 Expression* Parser::ParseObjectLiteral(bool* ok) {
3876 Expression* Parser::ParseRegExpLiteral(bool seen_equal, bool* ok) {
3896 ZoneList<Expression*>* Parser::ParseArguments(bool* ok) {
4013 FunctionLiteral* Parser::ParseFunctionLiteral(
4372 PreParser::PreParseResult Parser::LazyParseFunctionLiteral(
4397 Expression* Parser::ParseV8Intrinsic(bool* ok) {
4497 Literal* Parser::GetLiteralUndefined(int position) {
4503 Literal* Parser::GetLiteralTheHole(int position) {
4511 Handle<String> Parser::ParseIdentifier(bool* ok) {
4528 Handle<String> Parser::ParseIdentifierOrStrictReservedWord(
4545 Handle<String> Parser::ParseIdentifierName(bool* ok) {
4559 void Parser::MarkAsLValue(Expression* expression) {
4570 void Parser::CheckStrictModeLValue(Expression* expression,
4597 void Parser::CheckConflictingVarDeclarations(Scope* scope, bool* ok) {
4618 Handle<String> Parser::ParseIdentifierNameOrGetOrSet(bool* is_get,
4633 // Parser support
4636 bool Parser::TargetStackContainsLabel(Handle<String> label) {
4646 BreakableStatement* Parser::LookupBreakTarget(Handle<String> label, bool* ok) {
4661 IterationStatement* Parser::LookupContinueTarget(Handle<String> label,
4678 void Parser::RegisterTargetUse(Label* target, Target* stop) {
4689 Expression* Parser::NewThrowReferenceError(Handle<String> message) {
4695 Expression* Parser::NewThrowSyntaxError(Handle<String> message,
4704 Expression* Parser::NewThrowTypeError(Handle<String> message,
4716 Expression* Parser::NewThrowError(Handle<String> constructor,
5188 // don't want to scan the regexp twice unless it is necessary. This mini-parser
5547 // The Parser interface.
5645 RegExpParser parser(input, &result->error, multiline, zone);
5646 RegExpTree* tree = parser.ParsePattern();
5647 if (parser.failed()) {
5654 int capture_count = parser.captures_started();
5655 result->simple = tree->IsAtom() && parser.simple() && capture_count == 0;
5656 result->contains_anchor = parser.contains_anchor();
5659 return !parser.failed();
5663 bool Parser::Parse() {