| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 class ParserTraits { | 345 class ParserTraits { |
| 346 public: | 346 public: |
| 347 struct Type { | 347 struct Type { |
| 348 // TODO(marja): To be removed. The Traits object should contain all the data | 348 // TODO(marja): To be removed. The Traits object should contain all the data |
| 349 // it needs. | 349 // it needs. |
| 350 typedef v8::internal::Parser* Parser; | 350 typedef v8::internal::Parser* Parser; |
| 351 | 351 |
| 352 // Used by FunctionState and BlockState. | 352 // Used by FunctionState and BlockState. |
| 353 typedef v8::internal::Scope Scope; | 353 typedef v8::internal::Scope Scope; |
| 354 typedef v8::internal::Scope* ScopePtr; | 354 typedef v8::internal::Scope* ScopePtr; |
| 355 inline static Scope* ptr_to_scope(ScopePtr scope) { return scope; } |
| 356 |
| 355 typedef Variable GeneratorVariable; | 357 typedef Variable GeneratorVariable; |
| 356 typedef v8::internal::Zone Zone; | 358 typedef v8::internal::Zone Zone; |
| 357 | 359 |
| 358 typedef v8::internal::AstProperties AstProperties; | 360 typedef v8::internal::AstProperties AstProperties; |
| 359 typedef Vector<VariableProxy*> ParameterIdentifierVector; | 361 typedef Vector<VariableProxy*> ParameterIdentifierVector; |
| 360 | 362 |
| 361 // Return types for traversing functions. | 363 // Return types for traversing functions. |
| 362 typedef const AstRawString* Identifier; | 364 typedef const AstRawString* Identifier; |
| 363 typedef v8::internal::Expression* Expression; | 365 typedef v8::internal::Expression* Expression; |
| 364 typedef Yield* YieldExpression; | 366 typedef Yield* YieldExpression; |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 private: | 919 private: |
| 918 static const int kLiteralTypeSlot = 0; | 920 static const int kLiteralTypeSlot = 0; |
| 919 static const int kElementsSlot = 1; | 921 static const int kElementsSlot = 1; |
| 920 | 922 |
| 921 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 923 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 922 }; | 924 }; |
| 923 | 925 |
| 924 } } // namespace v8::internal | 926 } } // namespace v8::internal |
| 925 | 927 |
| 926 #endif // V8_PARSER_H_ | 928 #endif // V8_PARSER_H_ |
| OLD | NEW |