OLD | NEW |
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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 | 875 |
876 // This gives the instruction an opportunity to replace itself with an | 876 // This gives the instruction an opportunity to replace itself with an |
877 // instruction that does the same in some better way. To replace an | 877 // instruction that does the same in some better way. To replace an |
878 // instruction with a new one, first add the new instruction to the graph, | 878 // instruction with a new one, first add the new instruction to the graph, |
879 // then return it. Return NULL to have the instruction deleted. | 879 // then return it. Return NULL to have the instruction deleted. |
880 virtual HValue* Canonicalize() { return this; } | 880 virtual HValue* Canonicalize() { return this; } |
881 | 881 |
882 bool Equals(HValue* other); | 882 bool Equals(HValue* other); |
883 virtual intptr_t Hashcode(); | 883 virtual intptr_t Hashcode(); |
884 | 884 |
885 // Compute unique ids upfront that is safe wrt GC and parallel recompilation. | 885 // Compute unique ids upfront that is safe wrt GC and concurrent compilation. |
886 virtual void FinalizeUniqueValueId() { } | 886 virtual void FinalizeUniqueValueId() { } |
887 | 887 |
888 // Printing support. | 888 // Printing support. |
889 virtual void PrintTo(StringStream* stream) = 0; | 889 virtual void PrintTo(StringStream* stream) = 0; |
890 void PrintNameTo(StringStream* stream); | 890 void PrintNameTo(StringStream* stream); |
891 void PrintTypeTo(StringStream* stream); | 891 void PrintTypeTo(StringStream* stream); |
892 void PrintRangeTo(StringStream* stream); | 892 void PrintRangeTo(StringStream* stream); |
893 void PrintChangesTo(StringStream* stream); | 893 void PrintChangesTo(StringStream* stream); |
894 | 894 |
895 const char* Mnemonic() const; | 895 const char* Mnemonic() const; |
(...skipping 5900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6796 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 6796 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
6797 }; | 6797 }; |
6798 | 6798 |
6799 | 6799 |
6800 #undef DECLARE_INSTRUCTION | 6800 #undef DECLARE_INSTRUCTION |
6801 #undef DECLARE_CONCRETE_INSTRUCTION | 6801 #undef DECLARE_CONCRETE_INSTRUCTION |
6802 | 6802 |
6803 } } // namespace v8::internal | 6803 } } // namespace v8::internal |
6804 | 6804 |
6805 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6805 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |