| 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 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 ASSERT(!is_eliminated_); | 1903 ASSERT(!is_eliminated_); |
| 1904 is_eliminated_ = true; | 1904 is_eliminated_ = true; |
| 1905 } | 1905 } |
| 1906 | 1906 |
| 1907 virtual void PrintOperandsTo(BufferFormatter* f) const; | 1907 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 1908 | 1908 |
| 1909 virtual bool CanDeoptimize() const { return false; } | 1909 virtual bool CanDeoptimize() const { return false; } |
| 1910 | 1910 |
| 1911 virtual bool HasSideEffect() const { return false; } | 1911 virtual bool HasSideEffect() const { return false; } |
| 1912 | 1912 |
| 1913 virtual bool AffectedBySideEffect() const { return false; } |
| 1914 virtual bool AttributesEqual(Instruction* other) const; |
| 1915 |
| 1913 virtual intptr_t ResultCid() const { return kDynamicCid; } | 1916 virtual intptr_t ResultCid() const { return kDynamicCid; } |
| 1914 | 1917 |
| 1918 virtual Definition* Canonicalize(); |
| 1919 |
| 1915 private: | 1920 private: |
| 1916 const intptr_t token_pos_; | 1921 const intptr_t token_pos_; |
| 1917 const AbstractType& dst_type_; | 1922 const AbstractType& dst_type_; |
| 1918 const String& dst_name_; | 1923 const String& dst_name_; |
| 1919 bool is_eliminated_; | 1924 bool is_eliminated_; |
| 1920 | 1925 |
| 1921 DISALLOW_COPY_AND_ASSIGN(AssertAssignableInstr); | 1926 DISALLOW_COPY_AND_ASSIGN(AssertAssignableInstr); |
| 1922 }; | 1927 }; |
| 1923 | 1928 |
| 1924 | 1929 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1944 ASSERT(!is_eliminated_); | 1949 ASSERT(!is_eliminated_); |
| 1945 is_eliminated_ = true; | 1950 is_eliminated_ = true; |
| 1946 } | 1951 } |
| 1947 | 1952 |
| 1948 virtual void PrintOperandsTo(BufferFormatter* f) const; | 1953 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 1949 | 1954 |
| 1950 virtual bool CanDeoptimize() const { return false; } | 1955 virtual bool CanDeoptimize() const { return false; } |
| 1951 | 1956 |
| 1952 virtual bool HasSideEffect() const { return false; } | 1957 virtual bool HasSideEffect() const { return false; } |
| 1953 | 1958 |
| 1959 virtual bool AffectedBySideEffect() const { return false; } |
| 1960 virtual bool AttributesEqual(Instruction* other) const { return true; } |
| 1961 |
| 1954 virtual intptr_t ResultCid() const { return kBoolCid; } | 1962 virtual intptr_t ResultCid() const { return kBoolCid; } |
| 1955 | 1963 |
| 1956 virtual Definition* Canonicalize(); | 1964 virtual Definition* Canonicalize(); |
| 1957 | 1965 |
| 1958 private: | 1966 private: |
| 1959 const intptr_t token_pos_; | 1967 const intptr_t token_pos_; |
| 1960 bool is_eliminated_; | 1968 bool is_eliminated_; |
| 1961 | 1969 |
| 1962 DISALLOW_COPY_AND_ASSIGN(AssertBooleanInstr); | 1970 DISALLOW_COPY_AND_ASSIGN(AssertBooleanInstr); |
| 1963 }; | 1971 }; |
| (...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4229 ForwardInstructionIterator* current_iterator_; | 4237 ForwardInstructionIterator* current_iterator_; |
| 4230 | 4238 |
| 4231 private: | 4239 private: |
| 4232 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4240 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4233 }; | 4241 }; |
| 4234 | 4242 |
| 4235 | 4243 |
| 4236 } // namespace dart | 4244 } // namespace dart |
| 4237 | 4245 |
| 4238 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4246 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |