| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 6683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6694 intptr_t deopt_id, | 6694 intptr_t deopt_id, |
| 6695 const Function& function, | 6695 const Function& function, |
| 6696 Environment* outer) | 6696 Environment* outer) |
| 6697 : values_(length), | 6697 : values_(length), |
| 6698 locations_(NULL), | 6698 locations_(NULL), |
| 6699 fixed_parameter_count_(fixed_parameter_count), | 6699 fixed_parameter_count_(fixed_parameter_count), |
| 6700 deopt_id_(deopt_id), | 6700 deopt_id_(deopt_id), |
| 6701 function_(function), | 6701 function_(function), |
| 6702 outer_(outer) { } | 6702 outer_(outer) { } |
| 6703 | 6703 |
| 6704 // Deep copy the environment. A 'length' parameter can be given, which | 6704 // Deep copy an environment. A 'length' parameter can be given, which may |
| 6705 // may be less than the environment's length in order to drop values | 6705 // be less than the environment's length in order to drop values (e.g., |
| 6706 // (e.g., passed arguments) from the copy. | 6706 // passed arguments) from the copy. |
| 6707 Environment* DeepCopy() const; | 6707 Environment* DeepCopy() const { return DeepCopy(Length()); } |
| 6708 Environment* DeepCopy(intptr_t length) const; | 6708 Environment* DeepCopy(intptr_t length) const; |
| 6709 | 6709 |
| 6710 GrowableArray<Value*> values_; | 6710 GrowableArray<Value*> values_; |
| 6711 Location* locations_; | 6711 Location* locations_; |
| 6712 const intptr_t fixed_parameter_count_; | 6712 const intptr_t fixed_parameter_count_; |
| 6713 intptr_t deopt_id_; | 6713 intptr_t deopt_id_; |
| 6714 const Function& function_; | 6714 const Function& function_; |
| 6715 Environment* outer_; | 6715 Environment* outer_; |
| 6716 | 6716 |
| 6717 DISALLOW_COPY_AND_ASSIGN(Environment); | 6717 DISALLOW_COPY_AND_ASSIGN(Environment); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6748 ForwardInstructionIterator* current_iterator_; | 6748 ForwardInstructionIterator* current_iterator_; |
| 6749 | 6749 |
| 6750 private: | 6750 private: |
| 6751 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6751 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6752 }; | 6752 }; |
| 6753 | 6753 |
| 6754 | 6754 |
| 6755 } // namespace dart | 6755 } // namespace dart |
| 6756 | 6756 |
| 6757 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6757 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |