| 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 int pos = RelocInfo::kNoPosition); | 536 int pos = RelocInfo::kNoPosition); |
| 537 Literal* ExpressionFromLiteral( | 537 Literal* ExpressionFromLiteral( |
| 538 Token::Value token, int pos, Scanner* scanner, | 538 Token::Value token, int pos, Scanner* scanner, |
| 539 AstNodeFactory<AstConstructionVisitor>* factory); | 539 AstNodeFactory<AstConstructionVisitor>* factory); |
| 540 Expression* ExpressionFromIdentifier( | 540 Expression* ExpressionFromIdentifier( |
| 541 const AstRawString* name, int pos, Scope* scope, | 541 const AstRawString* name, int pos, Scope* scope, |
| 542 AstNodeFactory<AstConstructionVisitor>* factory); | 542 AstNodeFactory<AstConstructionVisitor>* factory); |
| 543 Expression* ExpressionFromString( | 543 Expression* ExpressionFromString( |
| 544 int pos, Scanner* scanner, | 544 int pos, Scanner* scanner, |
| 545 AstNodeFactory<AstConstructionVisitor>* factory); | 545 AstNodeFactory<AstConstructionVisitor>* factory); |
| 546 Expression* GetIterator(Expression* iterable, |
| 547 AstNodeFactory<AstConstructionVisitor>* factory); |
| 546 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { | 548 ZoneList<v8::internal::Expression*>* NewExpressionList(int size, Zone* zone) { |
| 547 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); | 549 return new(zone) ZoneList<v8::internal::Expression*>(size, zone); |
| 548 } | 550 } |
| 549 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { | 551 ZoneList<ObjectLiteral::Property*>* NewPropertyList(int size, Zone* zone) { |
| 550 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); | 552 return new(zone) ZoneList<ObjectLiteral::Property*>(size, zone); |
| 551 } | 553 } |
| 552 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) { | 554 ZoneList<v8::internal::Statement*>* NewStatementList(int size, Zone* zone) { |
| 553 return new(zone) ZoneList<v8::internal::Statement*>(size, zone); | 555 return new(zone) ZoneList<v8::internal::Statement*>(size, zone); |
| 554 } | 556 } |
| 555 V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type); | 557 V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 private: | 883 private: |
| 882 static const int kLiteralTypeSlot = 0; | 884 static const int kLiteralTypeSlot = 0; |
| 883 static const int kElementsSlot = 1; | 885 static const int kElementsSlot = 1; |
| 884 | 886 |
| 885 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 887 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 886 }; | 888 }; |
| 887 | 889 |
| 888 } } // namespace v8::internal | 890 } } // namespace v8::internal |
| 889 | 891 |
| 890 #endif // V8_PARSER_H_ | 892 #endif // V8_PARSER_H_ |
| OLD | NEW |