| 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 "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 expression_temp_var_(NULL), | 49 expression_temp_var_(NULL), |
| 50 deferred_prefixes_(NULL), | 50 deferred_prefixes_(NULL), |
| 51 first_parameter_index_(0), | 51 first_parameter_index_(0), |
| 52 first_stack_local_index_(0), | 52 first_stack_local_index_(0), |
| 53 num_copied_params_(0), | 53 num_copied_params_(0), |
| 54 num_stack_locals_(0) { | 54 num_stack_locals_(0) { |
| 55 ASSERT(function.IsZoneHandle()); | 55 ASSERT(function.IsZoneHandle()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 const Function& function() const { return function_; } | 58 const Function& function() const { return function_; } |
| 59 RawCode* code() const { return code_.raw(); } | 59 const Code& code() const { return code_; } |
| 60 | 60 |
| 61 SequenceNode* node_sequence() const { return node_sequence_; } | 61 SequenceNode* node_sequence() const { return node_sequence_; } |
| 62 void SetNodeSequence(SequenceNode* node_sequence); | 62 void SetNodeSequence(SequenceNode* node_sequence); |
| 63 | 63 |
| 64 LocalVariable* instantiator() const { return instantiator_; } | 64 LocalVariable* instantiator() const { return instantiator_; } |
| 65 void set_instantiator(LocalVariable* instantiator) { | 65 void set_instantiator(LocalVariable* instantiator) { |
| 66 // May be NULL. | 66 // May be NULL. |
| 67 instantiator_ = instantiator; | 67 instantiator_ = instantiator; |
| 68 } | 68 } |
| 69 | 69 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 intptr_t last_used_try_index_; | 720 intptr_t last_used_try_index_; |
| 721 | 721 |
| 722 bool unregister_pending_function_; | 722 bool unregister_pending_function_; |
| 723 | 723 |
| 724 DISALLOW_COPY_AND_ASSIGN(Parser); | 724 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 725 }; | 725 }; |
| 726 | 726 |
| 727 } // namespace dart | 727 } // namespace dart |
| 728 | 728 |
| 729 #endif // VM_PARSER_H_ | 729 #endif // VM_PARSER_H_ |
| OLD | NEW |