| 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 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2622 dst_name_(dst_name) { | 2622 dst_name_(dst_name) { |
| 2623 ASSERT(!dst_type.IsNull()); | 2623 ASSERT(!dst_type.IsNull()); |
| 2624 ASSERT(!dst_name.IsNull()); | 2624 ASSERT(!dst_name.IsNull()); |
| 2625 SetInputAt(0, value); | 2625 SetInputAt(0, value); |
| 2626 SetInputAt(1, instantiator); | 2626 SetInputAt(1, instantiator); |
| 2627 SetInputAt(2, instantiator_type_arguments); | 2627 SetInputAt(2, instantiator_type_arguments); |
| 2628 } | 2628 } |
| 2629 | 2629 |
| 2630 DECLARE_INSTRUCTION(AssertAssignable) | 2630 DECLARE_INSTRUCTION(AssertAssignable) |
| 2631 virtual CompileType* ComputeInitialType() const; | 2631 virtual CompileType* ComputeInitialType() const; |
| 2632 virtual bool RecomputeType(); |
| 2632 | 2633 |
| 2633 Value* value() const { return inputs_[0]; } | 2634 Value* value() const { return inputs_[0]; } |
| 2634 Value* instantiator() const { return inputs_[1]; } | 2635 Value* instantiator() const { return inputs_[1]; } |
| 2635 Value* instantiator_type_arguments() const { return inputs_[2]; } | 2636 Value* instantiator_type_arguments() const { return inputs_[2]; } |
| 2636 | 2637 |
| 2637 intptr_t token_pos() const { return token_pos_; } | 2638 intptr_t token_pos() const { return token_pos_; } |
| 2638 const AbstractType& dst_type() const { return dst_type_; } | 2639 const AbstractType& dst_type() const { return dst_type_; } |
| 2639 void set_dst_type(const AbstractType& dst_type) { | 2640 void set_dst_type(const AbstractType& dst_type) { |
| 2640 dst_type_ = dst_type.raw(); | 2641 dst_type_ = dst_type.raw(); |
| 2641 } | 2642 } |
| (...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7053 ForwardInstructionIterator* current_iterator_; | 7054 ForwardInstructionIterator* current_iterator_; |
| 7054 | 7055 |
| 7055 private: | 7056 private: |
| 7056 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7057 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7057 }; | 7058 }; |
| 7058 | 7059 |
| 7059 | 7060 |
| 7060 } // namespace dart | 7061 } // namespace dart |
| 7061 | 7062 |
| 7062 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7063 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |