| 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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 intptr_t ssa_temp_index() const { return ssa_temp_index_; } | 1773 intptr_t ssa_temp_index() const { return ssa_temp_index_; } |
| 1774 void set_ssa_temp_index(intptr_t index) { | 1774 void set_ssa_temp_index(intptr_t index) { |
| 1775 ASSERT(index >= 0); | 1775 ASSERT(index >= 0); |
| 1776 ASSERT(is_used()); | 1776 ASSERT(is_used()); |
| 1777 ssa_temp_index_ = index; | 1777 ssa_temp_index_ = index; |
| 1778 } | 1778 } |
| 1779 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } | 1779 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } |
| 1780 void ClearSSATempIndex() { ssa_temp_index_ = -1; } | 1780 void ClearSSATempIndex() { ssa_temp_index_ = -1; } |
| 1781 bool HasPairRepresentation() const { | 1781 bool HasPairRepresentation() const { |
| 1782 return (representation() == kPairOfTagged) || | 1782 return (representation() == kPairOfTagged) || |
| 1783 (representation() == kPairOfUnboxedDouble); | 1783 (representation() == kPairOfUnboxedDouble) || |
| 1784 (representation() == kUnboxedMint); |
| 1784 } | 1785 } |
| 1785 bool is_used() const { return (use_kind_ != kEffect); } | 1786 bool is_used() const { return (use_kind_ != kEffect); } |
| 1786 void set_use_kind(UseKind kind) { use_kind_ = kind; } | 1787 void set_use_kind(UseKind kind) { use_kind_ = kind; } |
| 1787 | 1788 |
| 1788 // Compile time type of the definition, which may be requested before type | 1789 // Compile time type of the definition, which may be requested before type |
| 1789 // propagation during graph building. | 1790 // propagation during graph building. |
| 1790 CompileType* Type() { | 1791 CompileType* Type() { |
| 1791 if (type_ == NULL) { | 1792 if (type_ == NULL) { |
| 1792 type_ = ComputeInitialType(); | 1793 type_ = ComputeInitialType(); |
| 1793 } | 1794 } |
| (...skipping 6170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7964 ForwardInstructionIterator* current_iterator_; | 7965 ForwardInstructionIterator* current_iterator_; |
| 7965 | 7966 |
| 7966 private: | 7967 private: |
| 7967 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7968 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7968 }; | 7969 }; |
| 7969 | 7970 |
| 7970 | 7971 |
| 7971 } // namespace dart | 7972 } // namespace dart |
| 7972 | 7973 |
| 7973 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7974 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |