| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
| 6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 struct ClassDesc; | 23 struct ClassDesc; |
| 24 struct MemberDesc; | 24 struct MemberDesc; |
| 25 struct ParamList; | 25 struct ParamList; |
| 26 struct QualIdent; | 26 struct QualIdent; |
| 27 struct CatchParamDesc; | 27 struct CatchParamDesc; |
| 28 struct FieldInitExpression; | 28 struct FieldInitExpression; |
| 29 | 29 |
| 30 // The class ParsedFunction holds the result of parsing a function. | 30 // The class ParsedFunction holds the result of parsing a function. |
| 31 class ParsedFunction : ValueObject { | 31 class ParsedFunction : ValueObject { |
| 32 public: | 32 public: |
| 33 static const int kFirstLocalSlotIndex = -2; |
| 34 |
| 33 explicit ParsedFunction(const Function& function) | 35 explicit ParsedFunction(const Function& function) |
| 34 : function_(function), | 36 : function_(function), |
| 35 node_sequence_(NULL), | 37 node_sequence_(NULL), |
| 36 instantiator_(NULL), | 38 instantiator_(NULL), |
| 37 default_parameter_values_(Array::Handle()), | 39 default_parameter_values_(Array::Handle()), |
| 38 saved_context_var_(NULL), | 40 saved_context_var_(NULL), |
| 39 expression_temp_var_(NULL), | 41 expression_temp_var_(NULL), |
| 40 first_parameter_index_(0), | 42 first_parameter_index_(0), |
| 41 first_stack_local_index_(0), | 43 first_stack_local_index_(0), |
| 42 copied_parameter_count_(0), | 44 copied_parameter_count_(0), |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 | 529 |
| 528 // Allocate temporary only once per function. | 530 // Allocate temporary only once per function. |
| 529 LocalVariable* expression_temp_; | 531 LocalVariable* expression_temp_; |
| 530 | 532 |
| 531 DISALLOW_COPY_AND_ASSIGN(Parser); | 533 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 532 }; | 534 }; |
| 533 | 535 |
| 534 } // namespace dart | 536 } // namespace dart |
| 535 | 537 |
| 536 #endif // VM_PARSER_H_ | 538 #endif // VM_PARSER_H_ |
| OLD | NEW |