| 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_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 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 virtual bool CanDeoptimize() const { return false; } | 1170 virtual bool CanDeoptimize() const { return false; } |
| 1171 | 1171 |
| 1172 virtual bool HasSideEffect() const { return false; } | 1172 virtual bool HasSideEffect() const { return false; } |
| 1173 | 1173 |
| 1174 // TODO(regis): This helper will be removed once we support type sets. | 1174 // TODO(regis): This helper will be removed once we support type sets. |
| 1175 RawAbstractType* LeastSpecificInputType() const; | 1175 RawAbstractType* LeastSpecificInputType() const; |
| 1176 | 1176 |
| 1177 // Phi is alive if it reaches a non-environment use. | 1177 // Phi is alive if it reaches a non-environment use. |
| 1178 bool is_alive() const { return is_alive_; } | 1178 bool is_alive() const { return is_alive_; } |
| 1179 void mark_alive() { is_alive_ = true; } | 1179 void mark_alive() { is_alive_ = true; } |
| 1180 void mark_dead() { is_alive_ = false; } |
| 1180 | 1181 |
| 1181 virtual Representation RequiredInputRepresentation(intptr_t i) const { | 1182 virtual Representation RequiredInputRepresentation(intptr_t i) const { |
| 1182 return representation_; | 1183 return representation_; |
| 1183 } | 1184 } |
| 1184 | 1185 |
| 1185 virtual Representation representation() const { | 1186 virtual Representation representation() const { |
| 1186 return representation_; | 1187 return representation_; |
| 1187 } | 1188 } |
| 1188 | 1189 |
| 1189 virtual void set_representation(Representation r) { | 1190 virtual void set_representation(Representation r) { |
| (...skipping 2981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4171 ForwardInstructionIterator* current_iterator_; | 4172 ForwardInstructionIterator* current_iterator_; |
| 4172 | 4173 |
| 4173 private: | 4174 private: |
| 4174 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4175 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4175 }; | 4176 }; |
| 4176 | 4177 |
| 4177 | 4178 |
| 4178 } // namespace dart | 4179 } // namespace dart |
| 4179 | 4180 |
| 4180 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4181 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |