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

Side by Side Diff: src/hydrogen-instructions.h

Issue 24072013: Hydrogenisation of binops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix rewrite mode & finetune type feedback Created 7 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 | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 } 756 }
757 int UseCount() const; 757 int UseCount() const;
758 758
759 // Mark this HValue as dead and to be removed from other HValues' use lists. 759 // Mark this HValue as dead and to be removed from other HValues' use lists.
760 void Kill(); 760 void Kill();
761 761
762 int flags() const { return flags_; } 762 int flags() const { return flags_; }
763 void SetFlag(Flag f) { flags_ |= (1 << f); } 763 void SetFlag(Flag f) { flags_ |= (1 << f); }
764 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } 764 void ClearFlag(Flag f) { flags_ &= ~(1 << f); }
765 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } 765 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; }
766 void CopyFlag(Flag f, HValue* other) {
767 if (other->CheckFlag(f)) SetFlag(f);
768 }
766 769
767 // Returns true if the flag specified is set for all uses, false otherwise. 770 // Returns true if the flag specified is set for all uses, false otherwise.
768 bool CheckUsesForFlag(Flag f) const; 771 bool CheckUsesForFlag(Flag f) const;
769 // Same as before and the first one without the flag is returned in value. 772 // Same as before and the first one without the flag is returned in value.
770 bool CheckUsesForFlag(Flag f, HValue** value) const; 773 bool CheckUsesForFlag(Flag f, HValue** value) const;
771 // Returns true if the flag specified is set for all uses, and this set 774 // Returns true if the flag specified is set for all uses, and this set
772 // of uses is non-empty. 775 // of uses is non-empty.
773 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const; 776 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const;
774 777
775 GVNFlagSet gvn_flags() const { return gvn_flags_; } 778 GVNFlagSet gvn_flags() const { return gvn_flags_; }
(...skipping 6288 matching lines...) Expand 10 before | Expand all | Expand 10 after
7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7067 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7065 }; 7068 };
7066 7069
7067 7070
7068 #undef DECLARE_INSTRUCTION 7071 #undef DECLARE_INSTRUCTION
7069 #undef DECLARE_CONCRETE_INSTRUCTION 7072 #undef DECLARE_CONCRETE_INSTRUCTION
7070 7073
7071 } } // namespace v8::internal 7074 } } // namespace v8::internal
7072 7075
7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7076 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698