| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class ClassDesc; | 24 class ClassDesc; |
| 25 struct MemberDesc; | 25 struct MemberDesc; |
| 26 struct ParamList; | 26 struct ParamList; |
| 27 struct QualIdent; | 27 struct QualIdent; |
| 28 struct CatchParamDesc; | 28 struct CatchParamDesc; |
| 29 struct FieldInitExpression; | 29 struct FieldInitExpression; |
| 30 | 30 |
| 31 // The class ParsedFunction holds the result of parsing a function. | 31 // The class ParsedFunction holds the result of parsing a function. |
| 32 class ParsedFunction : public ZoneAllocated { | 32 class ParsedFunction : public ZoneAllocated { |
| 33 public: | 33 public: |
| 34 static const int kFirstLocalSlotIndex = -2; | |
| 35 | |
| 36 explicit ParsedFunction(const Function& function) | 34 explicit ParsedFunction(const Function& function) |
| 37 : function_(function), | 35 : function_(function), |
| 38 node_sequence_(NULL), | 36 node_sequence_(NULL), |
| 39 instantiator_(NULL), | 37 instantiator_(NULL), |
| 40 default_parameter_values_(Array::ZoneHandle()), | 38 default_parameter_values_(Array::ZoneHandle()), |
| 41 saved_current_context_var_(NULL), | 39 saved_current_context_var_(NULL), |
| 42 saved_entry_context_var_(NULL), | 40 saved_entry_context_var_(NULL), |
| 43 expression_temp_var_(NULL), | 41 expression_temp_var_(NULL), |
| 44 array_literal_var_(NULL), | 42 array_literal_var_(NULL), |
| 45 first_parameter_index_(0), | 43 first_parameter_index_(0), |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 // code at all points in the try block where an exit from the block is | 671 // code at all points in the try block where an exit from the block is |
| 674 // done using 'return', 'break' or 'continue' statements. | 672 // done using 'return', 'break' or 'continue' statements. |
| 675 TryBlocks* try_blocks_list_; | 673 TryBlocks* try_blocks_list_; |
| 676 | 674 |
| 677 DISALLOW_COPY_AND_ASSIGN(Parser); | 675 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 678 }; | 676 }; |
| 679 | 677 |
| 680 } // namespace dart | 678 } // namespace dart |
| 681 | 679 |
| 682 #endif // VM_PARSER_H_ | 680 #endif // VM_PARSER_H_ |
| OLD | NEW |