Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: src/parser.h

Issue 1168513004: [es6] Super call in arrows and eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Push this_function earlier Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // TODO(titzer): remove this include dependency 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 // Odd-ball literal creators. 717 // Odd-ball literal creators.
718 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); 718 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory);
719 719
720 // Producing data during the recursive descent. 720 // Producing data during the recursive descent.
721 const AstRawString* GetSymbol(Scanner* scanner); 721 const AstRawString* GetSymbol(Scanner* scanner);
722 const AstRawString* GetNextSymbol(Scanner* scanner); 722 const AstRawString* GetNextSymbol(Scanner* scanner);
723 const AstRawString* GetNumberAsSymbol(Scanner* scanner); 723 const AstRawString* GetNumberAsSymbol(Scanner* scanner);
724 724
725 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, 725 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory,
726 int pos = RelocInfo::kNoPosition); 726 int pos = RelocInfo::kNoPosition);
727 Expression* SuperReference(Scope* scope, AstNodeFactory* factory, int pos); 727 Expression* SuperPropertyReference(Scope* scope, AstNodeFactory* factory,
728 int pos);
729 Expression* SuperCallReference(Scope* scope, AstNodeFactory* factory,
730 int pos);
728 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, 731 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos,
729 int end_pos); 732 int end_pos);
730 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, 733 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner,
731 AstNodeFactory* factory); 734 AstNodeFactory* factory);
732 Expression* ExpressionFromIdentifier(const AstRawString* name, 735 Expression* ExpressionFromIdentifier(const AstRawString* name,
733 int start_position, int end_position, 736 int start_position, int end_position,
734 Scope* scope, AstNodeFactory* factory); 737 Scope* scope, AstNodeFactory* factory);
735 Expression* ExpressionFromString(int pos, Scanner* scanner, 738 Expression* ExpressionFromString(int pos, Scanner* scanner,
736 AstNodeFactory* factory); 739 AstNodeFactory* factory);
737 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); 740 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory);
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 } 1274 }
1272 1275
1273 1276
1274 Expression* ParserTraits::SpreadCallNew( 1277 Expression* ParserTraits::SpreadCallNew(
1275 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { 1278 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) {
1276 return parser_->SpreadCallNew(function, args, pos); 1279 return parser_->SpreadCallNew(function, args, pos);
1277 } 1280 }
1278 } } // namespace v8::internal 1281 } } // namespace v8::internal
1279 1282
1280 #endif // V8_PARSER_H_ 1283 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698