| 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 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2656 dst_name_(dst_name) { | 2656 dst_name_(dst_name) { |
| 2657 ASSERT(!dst_type.IsNull()); | 2657 ASSERT(!dst_type.IsNull()); |
| 2658 ASSERT(!dst_name.IsNull()); | 2658 ASSERT(!dst_name.IsNull()); |
| 2659 SetInputAt(0, value); | 2659 SetInputAt(0, value); |
| 2660 SetInputAt(1, instantiator); | 2660 SetInputAt(1, instantiator); |
| 2661 SetInputAt(2, instantiator_type_arguments); | 2661 SetInputAt(2, instantiator_type_arguments); |
| 2662 } | 2662 } |
| 2663 | 2663 |
| 2664 DECLARE_INSTRUCTION(AssertAssignable) | 2664 DECLARE_INSTRUCTION(AssertAssignable) |
| 2665 virtual CompileType* ComputeInitialType() const; | 2665 virtual CompileType* ComputeInitialType() const; |
| 2666 virtual bool RecomputeType(); | |
| 2667 | 2666 |
| 2668 Value* value() const { return inputs_[0]; } | 2667 Value* value() const { return inputs_[0]; } |
| 2669 Value* instantiator() const { return inputs_[1]; } | 2668 Value* instantiator() const { return inputs_[1]; } |
| 2670 Value* instantiator_type_arguments() const { return inputs_[2]; } | 2669 Value* instantiator_type_arguments() const { return inputs_[2]; } |
| 2671 | 2670 |
| 2672 intptr_t token_pos() const { return token_pos_; } | 2671 intptr_t token_pos() const { return token_pos_; } |
| 2673 const AbstractType& dst_type() const { return dst_type_; } | 2672 const AbstractType& dst_type() const { return dst_type_; } |
| 2674 void set_dst_type(const AbstractType& dst_type) { | 2673 void set_dst_type(const AbstractType& dst_type) { |
| 2675 dst_type_ = dst_type.raw(); | 2674 dst_type_ = dst_type.raw(); |
| 2676 } | 2675 } |
| (...skipping 4419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7096 ForwardInstructionIterator* current_iterator_; | 7095 ForwardInstructionIterator* current_iterator_; |
| 7097 | 7096 |
| 7098 private: | 7097 private: |
| 7099 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7098 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7100 }; | 7099 }; |
| 7101 | 7100 |
| 7102 | 7101 |
| 7103 } // namespace dart | 7102 } // namespace dart |
| 7104 | 7103 |
| 7105 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7104 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |