Chromium Code Reviews| 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 kFirstStackSlotIndex = -2; | |
|
regis
2012/05/14 17:33:10
The name is not clear, since parameters also occup
siva
2012/05/15 23:52:39
Changed name as discussed offline.
The naming for
| |
| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 520 | 522 |
| 521 // Allocate temporary only once per function. | 523 // Allocate temporary only once per function. |
| 522 LocalVariable* expression_temp_; | 524 LocalVariable* expression_temp_; |
| 523 | 525 |
| 524 DISALLOW_COPY_AND_ASSIGN(Parser); | 526 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 525 }; | 527 }; |
| 526 | 528 |
| 527 } // namespace dart | 529 } // namespace dart |
| 528 | 530 |
| 529 #endif // VM_PARSER_H_ | 531 #endif // VM_PARSER_H_ |
| OLD | NEW |