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 26 matching lines...) Expand all Loading... |
37 default_parameter_values_(Array::Handle()), | 37 default_parameter_values_(Array::Handle()), |
38 saved_context_var_(NULL), | 38 saved_context_var_(NULL), |
39 first_parameter_index_(0), | 39 first_parameter_index_(0), |
40 first_stack_local_index_(0), | 40 first_stack_local_index_(0), |
41 copied_parameter_count_(0), | 41 copied_parameter_count_(0), |
42 stack_local_count_(0) { } | 42 stack_local_count_(0) { } |
43 | 43 |
44 const Function& function() const { return function_; } | 44 const Function& function() const { return function_; } |
45 | 45 |
46 SequenceNode* node_sequence() const { return node_sequence_; } | 46 SequenceNode* node_sequence() const { return node_sequence_; } |
47 void set_node_sequence(SequenceNode* node_sequence) { | 47 void SetNodeSequence(SequenceNode* node_sequence); |
48 ASSERT(node_sequence != NULL); | |
49 node_sequence_ = node_sequence; | |
50 } | |
51 | 48 |
52 AstNode* instantiator() const { return instantiator_; } | 49 AstNode* instantiator() const { return instantiator_; } |
53 void set_instantiator(AstNode* instantiator) { | 50 void set_instantiator(AstNode* instantiator) { |
54 // May be NULL. | 51 // May be NULL. |
55 instantiator_ = instantiator; | 52 instantiator_ = instantiator; |
56 } | 53 } |
57 | 54 |
58 const Array& default_parameter_values() const { | 55 const Array& default_parameter_values() const { |
59 return default_parameter_values_; | 56 return default_parameter_values_; |
60 } | 57 } |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 // code at all points in the try block where an exit from the block is | 500 // code at all points in the try block where an exit from the block is |
504 // done using 'return', 'break' or 'continue' statements. | 501 // done using 'return', 'break' or 'continue' statements. |
505 TryBlocks* try_blocks_list_; | 502 TryBlocks* try_blocks_list_; |
506 | 503 |
507 DISALLOW_COPY_AND_ASSIGN(Parser); | 504 DISALLOW_COPY_AND_ASSIGN(Parser); |
508 }; | 505 }; |
509 | 506 |
510 } // namespace dart | 507 } // namespace dart |
511 | 508 |
512 #endif // VM_PARSER_H_ | 509 #endif // VM_PARSER_H_ |
OLD | NEW |