| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Literal* GetLiteralTheHole(int position, | 527 Literal* GetLiteralTheHole(int position, |
| 528 AstNodeFactory<AstConstructionVisitor>* factory); | 528 AstNodeFactory<AstConstructionVisitor>* factory); |
| 529 | 529 |
| 530 // Producing data during the recursive descent. | 530 // Producing data during the recursive descent. |
| 531 const AstRawString* GetSymbol(Scanner* scanner); | 531 const AstRawString* GetSymbol(Scanner* scanner); |
| 532 const AstRawString* GetNextSymbol(Scanner* scanner); | 532 const AstRawString* GetNextSymbol(Scanner* scanner); |
| 533 | 533 |
| 534 Expression* ThisExpression(Scope* scope, | 534 Expression* ThisExpression(Scope* scope, |
| 535 AstNodeFactory<AstConstructionVisitor>* factory, | 535 AstNodeFactory<AstConstructionVisitor>* factory, |
| 536 int pos = RelocInfo::kNoPosition); | 536 int pos = RelocInfo::kNoPosition); |
| 537 Expression* SuperReference(Scope* scope, |
| 538 AstNodeFactory<AstConstructionVisitor>* factory, |
| 539 int pos = RelocInfo::kNoPosition); |
| 537 Literal* ExpressionFromLiteral( | 540 Literal* ExpressionFromLiteral( |
| 538 Token::Value token, int pos, Scanner* scanner, | 541 Token::Value token, int pos, Scanner* scanner, |
| 539 AstNodeFactory<AstConstructionVisitor>* factory); | 542 AstNodeFactory<AstConstructionVisitor>* factory); |
| 540 Expression* ExpressionFromIdentifier( | 543 Expression* ExpressionFromIdentifier( |
| 541 const AstRawString* name, int pos, Scope* scope, | 544 const AstRawString* name, int pos, Scope* scope, |
| 542 AstNodeFactory<AstConstructionVisitor>* factory); | 545 AstNodeFactory<AstConstructionVisitor>* factory); |
| 543 Expression* ExpressionFromString( | 546 Expression* ExpressionFromString( |
| 544 int pos, Scanner* scanner, | 547 int pos, Scanner* scanner, |
| 545 AstNodeFactory<AstConstructionVisitor>* factory); | 548 AstNodeFactory<AstConstructionVisitor>* factory); |
| 546 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { | 549 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 private: | 884 private: |
| 882 static const int kLiteralTypeSlot = 0; | 885 static const int kLiteralTypeSlot = 0; |
| 883 static const int kElementsSlot = 1; | 886 static const int kElementsSlot = 1; |
| 884 | 887 |
| 885 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 888 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 886 }; | 889 }; |
| 887 | 890 |
| 888 } } // namespace v8::internal | 891 } } // namespace v8::internal |
| 889 | 892 |
| 890 #endif // V8_PARSER_H_ | 893 #endif // V8_PARSER_H_ |
| OLD | NEW |