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 // Non-NULL empty string. | 527 // Non-NULL empty string. |
528 V8_INLINE const AstRawString* EmptyIdentifierString(); | 528 V8_INLINE const AstRawString* EmptyIdentifierString(); |
529 | 529 |
530 // Odd-ball literal creators. | 530 // Odd-ball literal creators. |
531 Literal* GetLiteralTheHole(int position, | 531 Literal* GetLiteralTheHole(int position, |
532 AstNodeFactory<AstConstructionVisitor>* factory); | 532 AstNodeFactory<AstConstructionVisitor>* factory); |
533 | 533 |
534 // Producing data during the recursive descent. | 534 // Producing data during the recursive descent. |
535 const AstRawString* GetSymbol(Scanner* scanner); | 535 const AstRawString* GetSymbol(Scanner* scanner); |
536 const AstRawString* GetNextSymbol(Scanner* scanner); | 536 const AstRawString* GetNextSymbol(Scanner* scanner); |
| 537 const AstRawString* GetNumberAsSymbol(Scanner* scanner); |
537 | 538 |
538 Expression* ThisExpression(Scope* scope, | 539 Expression* ThisExpression(Scope* scope, |
539 AstNodeFactory<AstConstructionVisitor>* factory, | 540 AstNodeFactory<AstConstructionVisitor>* factory, |
540 int pos = RelocInfo::kNoPosition); | 541 int pos = RelocInfo::kNoPosition); |
541 Expression* SuperReference(Scope* scope, | 542 Expression* SuperReference(Scope* scope, |
542 AstNodeFactory<AstConstructionVisitor>* factory, | 543 AstNodeFactory<AstConstructionVisitor>* factory, |
543 int pos = RelocInfo::kNoPosition); | 544 int pos = RelocInfo::kNoPosition); |
544 Literal* ExpressionFromLiteral( | 545 Literal* ExpressionFromLiteral( |
545 Token::Value token, int pos, Scanner* scanner, | 546 Token::Value token, int pos, Scanner* scanner, |
546 AstNodeFactory<AstConstructionVisitor>* factory); | 547 AstNodeFactory<AstConstructionVisitor>* factory); |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 private: | 891 private: |
891 static const int kLiteralTypeSlot = 0; | 892 static const int kLiteralTypeSlot = 0; |
892 static const int kElementsSlot = 1; | 893 static const int kElementsSlot = 1; |
893 | 894 |
894 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 895 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
895 }; | 896 }; |
896 | 897 |
897 } } // namespace v8::internal | 898 } } // namespace v8::internal |
898 | 899 |
899 #endif // V8_PARSER_H_ | 900 #endif // V8_PARSER_H_ |
OLD | NEW |