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

Side by Side Diff: src/parser.h

Issue 1135243004: [es6] Support super.property in eval and arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review cleanup 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, 727 Expression* SuperReference(Scope* scope, AstNodeFactory* factory, int pos);
728 int pos = RelocInfo::kNoPosition);
729 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos, 728 Expression* DefaultConstructor(bool call_super, Scope* scope, int pos,
730 int end_pos); 729 int end_pos);
731 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, 730 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner,
732 AstNodeFactory* factory); 731 AstNodeFactory* factory);
733 Expression* ExpressionFromIdentifier(const AstRawString* name, 732 Expression* ExpressionFromIdentifier(const AstRawString* name,
734 int start_position, int end_position, 733 int start_position, int end_position,
735 Scope* scope, AstNodeFactory* factory); 734 Scope* scope, AstNodeFactory* factory);
736 Expression* ExpressionFromString(int pos, Scanner* scanner, 735 Expression* ExpressionFromString(int pos, Scanner* scanner,
737 AstNodeFactory* factory); 736 AstNodeFactory* factory);
738 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory); 737 Expression* GetIterator(Expression* iterable, AstNodeFactory* factory);
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 } 1271 }
1273 1272
1274 1273
1275 Expression* ParserTraits::SpreadCallNew( 1274 Expression* ParserTraits::SpreadCallNew(
1276 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { 1275 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) {
1277 return parser_->SpreadCallNew(function, args, pos); 1276 return parser_->SpreadCallNew(function, args, pos);
1278 } 1277 }
1279 } } // namespace v8::internal 1278 } } // namespace v8::internal
1280 1279
1281 #endif // V8_PARSER_H_ 1280 #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