| 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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1762 intptr_t ssa_temp_index() const { return ssa_temp_index_; } | 1762 intptr_t ssa_temp_index() const { return ssa_temp_index_; } |
| 1763 void set_ssa_temp_index(intptr_t index) { | 1763 void set_ssa_temp_index(intptr_t index) { |
| 1764 ASSERT(index >= 0); | 1764 ASSERT(index >= 0); |
| 1765 ASSERT(is_used()); | 1765 ASSERT(is_used()); |
| 1766 ssa_temp_index_ = index; | 1766 ssa_temp_index_ = index; |
| 1767 } | 1767 } |
| 1768 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } | 1768 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } |
| 1769 void ClearSSATempIndex() { ssa_temp_index_ = -1; } | 1769 void ClearSSATempIndex() { ssa_temp_index_ = -1; } |
| 1770 bool HasPairRepresentation() const { | 1770 bool HasPairRepresentation() const { |
| 1771 return (representation() == kPairOfTagged) || | 1771 return (representation() == kPairOfTagged) || |
| 1772 (representation() == kPairOfUnboxedDouble); | 1772 (representation() == kPairOfUnboxedDouble) || |
| 1773 (representation() == kUnboxedMint); |
| 1773 } | 1774 } |
| 1774 bool is_used() const { return (use_kind_ != kEffect); } | 1775 bool is_used() const { return (use_kind_ != kEffect); } |
| 1775 void set_use_kind(UseKind kind) { use_kind_ = kind; } | 1776 void set_use_kind(UseKind kind) { use_kind_ = kind; } |
| 1776 | 1777 |
| 1777 // Compile time type of the definition, which may be requested before type | 1778 // Compile time type of the definition, which may be requested before type |
| 1778 // propagation during graph building. | 1779 // propagation during graph building. |
| 1779 CompileType* Type() { | 1780 CompileType* Type() { |
| 1780 if (type_ == NULL) { | 1781 if (type_ == NULL) { |
| 1781 type_ = ComputeInitialType(); | 1782 type_ = ComputeInitialType(); |
| 1782 } | 1783 } |
| (...skipping 6078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7861 ForwardInstructionIterator* current_iterator_; | 7862 ForwardInstructionIterator* current_iterator_; |
| 7862 | 7863 |
| 7863 private: | 7864 private: |
| 7864 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7865 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7865 }; | 7866 }; |
| 7866 | 7867 |
| 7867 | 7868 |
| 7868 } // namespace dart | 7869 } // namespace dart |
| 7869 | 7870 |
| 7870 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7871 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |