Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 11186023: Enable more redundancy elimination for checked mode asserts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698