| 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 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2973 | 2973 |
| 2974 virtual intptr_t ArgumentCount() const { | 2974 virtual intptr_t ArgumentCount() const { |
| 2975 return instance_call()->ArgumentCount(); | 2975 return instance_call()->ArgumentCount(); |
| 2976 } | 2976 } |
| 2977 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const { | 2977 virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const { |
| 2978 return instance_call()->PushArgumentAt(index); | 2978 return instance_call()->PushArgumentAt(index); |
| 2979 } | 2979 } |
| 2980 | 2980 |
| 2981 bool HasSingleRecognizedTarget() const; | 2981 bool HasSingleRecognizedTarget() const; |
| 2982 | 2982 |
| 2983 bool HasSingleDispatcherTarget() const; |
| 2984 |
| 2983 virtual intptr_t CallCount() const { return ic_data().AggregateCount(); } | 2985 virtual intptr_t CallCount() const { return ic_data().AggregateCount(); } |
| 2984 | 2986 |
| 2985 DECLARE_INSTRUCTION(PolymorphicInstanceCall) | 2987 DECLARE_INSTRUCTION(PolymorphicInstanceCall) |
| 2986 | 2988 |
| 2987 const ICData& ic_data() const { return ic_data_; } | 2989 const ICData& ic_data() const { return ic_data_; } |
| 2988 | 2990 |
| 2989 virtual bool CanDeoptimize() const { return true; } | 2991 virtual bool CanDeoptimize() const { return true; } |
| 2990 | 2992 |
| 2991 virtual EffectSet Effects() const { return EffectSet::All(); } | 2993 virtual EffectSet Effects() const { return EffectSet::All(); } |
| 2992 | 2994 |
| (...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7780 ForwardInstructionIterator* current_iterator_; | 7782 ForwardInstructionIterator* current_iterator_; |
| 7781 | 7783 |
| 7782 private: | 7784 private: |
| 7783 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7785 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7784 }; | 7786 }; |
| 7785 | 7787 |
| 7786 | 7788 |
| 7787 } // namespace dart | 7789 } // namespace dart |
| 7788 | 7790 |
| 7789 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7791 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |