| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 static LocalVariable* CreateExpressionTempVar(intptr_t token_pos); | 86 static LocalVariable* CreateExpressionTempVar(intptr_t token_pos); |
| 87 | 87 |
| 88 int first_parameter_index() const { return first_parameter_index_; } | 88 int first_parameter_index() const { return first_parameter_index_; } |
| 89 int first_stack_local_index() const { return first_stack_local_index_; } | 89 int first_stack_local_index() const { return first_stack_local_index_; } |
| 90 int num_copied_params() const { return num_copied_params_; } | 90 int num_copied_params() const { return num_copied_params_; } |
| 91 int num_stack_locals() const { return num_stack_locals_; } | 91 int num_stack_locals() const { return num_stack_locals_; } |
| 92 | 92 |
| 93 void AllocateVariables(); | 93 void AllocateVariables(); |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 friend class CachedFunction; |
| 97 |
| 96 const Function& function_; | 98 const Function& function_; |
| 97 SequenceNode* node_sequence_; | 99 SequenceNode* node_sequence_; |
| 98 AstNode* instantiator_; | 100 AstNode* instantiator_; |
| 99 Array& default_parameter_values_; | 101 Array& default_parameter_values_; |
| 100 LocalVariable* saved_context_var_; | 102 LocalVariable* saved_context_var_; |
| 101 LocalVariable* expression_temp_var_; | 103 LocalVariable* expression_temp_var_; |
| 102 | 104 |
| 103 int first_parameter_index_; | 105 int first_parameter_index_; |
| 104 int first_stack_local_index_; | 106 int first_stack_local_index_; |
| 105 int num_copied_params_; | 107 int num_copied_params_; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 611 |
| 610 // Allocate temporary only once per function. | 612 // Allocate temporary only once per function. |
| 611 LocalVariable* expression_temp_; | 613 LocalVariable* expression_temp_; |
| 612 | 614 |
| 613 DISALLOW_COPY_AND_ASSIGN(Parser); | 615 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 614 }; | 616 }; |
| 615 | 617 |
| 616 } // namespace dart | 618 } // namespace dart |
| 617 | 619 |
| 618 #endif // VM_PARSER_H_ | 620 #endif // VM_PARSER_H_ |
| OLD | NEW |