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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 Expression* ThisExpression(Scope* scope, | 552 Expression* ThisExpression(Scope* scope, |
553 AstNodeFactory<AstConstructionVisitor>* factory, | 553 AstNodeFactory<AstConstructionVisitor>* factory, |
554 int pos = RelocInfo::kNoPosition); | 554 int pos = RelocInfo::kNoPosition); |
555 Expression* SuperReference(Scope* scope, | 555 Expression* SuperReference(Scope* scope, |
556 AstNodeFactory<AstConstructionVisitor>* factory, | 556 AstNodeFactory<AstConstructionVisitor>* factory, |
557 int pos = RelocInfo::kNoPosition); | 557 int pos = RelocInfo::kNoPosition); |
558 Expression* ClassExpression(const AstRawString* name, Expression* extends, | 558 Expression* ClassExpression(const AstRawString* name, Expression* extends, |
559 Expression* constructor, | 559 Expression* constructor, |
560 ZoneList<ObjectLiteral::Property*>* properties, | 560 ZoneList<ObjectLiteral::Property*>* properties, |
561 int pos, | 561 int start_position, int end_position, |
562 AstNodeFactory<AstConstructionVisitor>* factory); | 562 AstNodeFactory<AstConstructionVisitor>* factory); |
563 | 563 |
564 Literal* ExpressionFromLiteral( | 564 Literal* ExpressionFromLiteral( |
565 Token::Value token, int pos, Scanner* scanner, | 565 Token::Value token, int pos, Scanner* scanner, |
566 AstNodeFactory<AstConstructionVisitor>* factory); | 566 AstNodeFactory<AstConstructionVisitor>* factory); |
567 Expression* ExpressionFromIdentifier( | 567 Expression* ExpressionFromIdentifier( |
568 const AstRawString* name, int pos, Scope* scope, | 568 const AstRawString* name, int pos, Scope* scope, |
569 AstNodeFactory<AstConstructionVisitor>* factory); | 569 AstNodeFactory<AstConstructionVisitor>* factory); |
570 Expression* ExpressionFromString( | 570 Expression* ExpressionFromString( |
571 int pos, Scanner* scanner, | 571 int pos, Scanner* scanner, |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 private: | 932 private: |
933 static const int kLiteralTypeSlot = 0; | 933 static const int kLiteralTypeSlot = 0; |
934 static const int kElementsSlot = 1; | 934 static const int kElementsSlot = 1; |
935 | 935 |
936 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 936 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
937 }; | 937 }; |
938 | 938 |
939 } } // namespace v8::internal | 939 } } // namespace v8::internal |
940 | 940 |
941 #endif // V8_PARSER_H_ | 941 #endif // V8_PARSER_H_ |
OLD | NEW |