| 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 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1774 virtual RawAbstractType* CompileType() const { | 1774 virtual RawAbstractType* CompileType() const { |
| 1775 return Type::SmiType(); | 1775 return Type::SmiType(); |
| 1776 } | 1776 } |
| 1777 | 1777 |
| 1778 virtual bool CanDeoptimize() const { return false; } | 1778 virtual bool CanDeoptimize() const { return false; } |
| 1779 | 1779 |
| 1780 virtual bool HasSideEffect() const { return false; } | 1780 virtual bool HasSideEffect() const { return false; } |
| 1781 | 1781 |
| 1782 virtual intptr_t ResultCid() const { return kSmiCid; } | 1782 virtual intptr_t ResultCid() const { return kSmiCid; } |
| 1783 | 1783 |
| 1784 virtual bool AttributesEqual(Definition* other) const { | 1784 virtual bool AttributesEqual(Instruction* other) const { |
| 1785 UNREACHABLE(); | 1785 UNREACHABLE(); |
| 1786 return false; | 1786 return false; |
| 1787 } | 1787 } |
| 1788 | 1788 |
| 1789 virtual void PrintOperandsTo(BufferFormatter* f) const; | 1789 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 1790 | 1790 |
| 1791 Value* value() const { return inputs_[0]; } | 1791 Value* value() const { return inputs_[0]; } |
| 1792 Range* constraint() const { return constraint_; } | 1792 Range* constraint() const { return constraint_; } |
| 1793 | 1793 |
| 1794 virtual bool InferRange(); | 1794 virtual bool InferRange(); |
| (...skipping 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3966 ForwardInstructionIterator* current_iterator_; | 3966 ForwardInstructionIterator* current_iterator_; |
| 3967 | 3967 |
| 3968 private: | 3968 private: |
| 3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3970 }; | 3970 }; |
| 3971 | 3971 |
| 3972 | 3972 |
| 3973 } // namespace dart | 3973 } // namespace dart |
| 3974 | 3974 |
| 3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |