OLD | NEW |
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" // For CachedDataMode | 10 #include "src/compiler.h" // For CachedDataMode |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 Literal* GetLiteralTheHole(int position, | 542 Literal* GetLiteralTheHole(int position, |
543 AstNodeFactory<AstConstructionVisitor>* factory); | 543 AstNodeFactory<AstConstructionVisitor>* factory); |
544 | 544 |
545 // Producing data during the recursive descent. | 545 // Producing data during the recursive descent. |
546 const AstRawString* GetSymbol(Scanner* scanner); | 546 const AstRawString* GetSymbol(Scanner* scanner); |
547 const AstRawString* GetNextSymbol(Scanner* scanner); | 547 const AstRawString* GetNextSymbol(Scanner* scanner); |
548 | 548 |
549 Expression* ThisExpression(Scope* scope, | 549 Expression* ThisExpression(Scope* scope, |
550 AstNodeFactory<AstConstructionVisitor>* factory, | 550 AstNodeFactory<AstConstructionVisitor>* factory, |
551 int pos = RelocInfo::kNoPosition); | 551 int pos = RelocInfo::kNoPosition); |
| 552 Expression* SuperReference(Scope* scope, |
| 553 AstNodeFactory<AstConstructionVisitor>* factory, |
| 554 int pos = RelocInfo::kNoPosition); |
552 Literal* ExpressionFromLiteral( | 555 Literal* ExpressionFromLiteral( |
553 Token::Value token, int pos, Scanner* scanner, | 556 Token::Value token, int pos, Scanner* scanner, |
554 AstNodeFactory<AstConstructionVisitor>* factory); | 557 AstNodeFactory<AstConstructionVisitor>* factory); |
555 Expression* ExpressionFromIdentifier( | 558 Expression* ExpressionFromIdentifier( |
556 const AstRawString* name, int pos, Scope* scope, | 559 const AstRawString* name, int pos, Scope* scope, |
557 AstNodeFactory<AstConstructionVisitor>* factory); | 560 AstNodeFactory<AstConstructionVisitor>* factory); |
558 Expression* ExpressionFromString( | 561 Expression* ExpressionFromString( |
559 int pos, Scanner* scanner, | 562 int pos, Scanner* scanner, |
560 AstNodeFactory<AstConstructionVisitor>* factory); | 563 AstNodeFactory<AstConstructionVisitor>* factory); |
561 Expression* GetIterator(Expression* iterable, | 564 Expression* GetIterator(Expression* iterable, |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 private: | 901 private: |
899 static const int kLiteralTypeSlot = 0; | 902 static const int kLiteralTypeSlot = 0; |
900 static const int kElementsSlot = 1; | 903 static const int kElementsSlot = 1; |
901 | 904 |
902 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 905 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
903 }; | 906 }; |
904 | 907 |
905 } } // namespace v8::internal | 908 } } // namespace v8::internal |
906 | 909 |
907 #endif // V8_PARSER_H_ | 910 #endif // V8_PARSER_H_ |
OLD | NEW |