| 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 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3335 | 3335 |
| 3336 bool IsCell() const { | 3336 bool IsCell() const { |
| 3337 return is_cell_; | 3337 return is_cell_; |
| 3338 } | 3338 } |
| 3339 | 3339 |
| 3340 virtual Representation RequiredInputRepresentation(int index) { | 3340 virtual Representation RequiredInputRepresentation(int index) { |
| 3341 return Representation::None(); | 3341 return Representation::None(); |
| 3342 } | 3342 } |
| 3343 | 3343 |
| 3344 virtual Representation KnownOptimalRepresentation() { | 3344 virtual Representation KnownOptimalRepresentation() { |
| 3345 if (HasSmiValue() && kSmiValueSize == 31) return Representation::Smi(); | 3345 if (HasSmiValue() && SmiValuesAre31Bits()) return Representation::Smi(); |
| 3346 if (HasInteger32Value()) return Representation::Integer32(); | 3346 if (HasInteger32Value()) return Representation::Integer32(); |
| 3347 if (HasNumberValue()) return Representation::Double(); | 3347 if (HasNumberValue()) return Representation::Double(); |
| 3348 if (HasExternalReferenceValue()) return Representation::External(); | 3348 if (HasExternalReferenceValue()) return Representation::External(); |
| 3349 return Representation::Tagged(); | 3349 return Representation::Tagged(); |
| 3350 } | 3350 } |
| 3351 | 3351 |
| 3352 virtual bool EmitAtUses(); | 3352 virtual bool EmitAtUses(); |
| 3353 virtual void PrintDataTo(StringStream* stream); | 3353 virtual void PrintDataTo(StringStream* stream); |
| 3354 bool IsInteger() { return handle()->IsSmi(); } | 3354 bool IsInteger() { return handle()->IsSmi(); } |
| 3355 HConstant* CopyToRepresentation(Representation r, Zone* zone) const; | 3355 HConstant* CopyToRepresentation(Representation r, Zone* zone) const; |
| (...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6854 virtual bool IsDeletable() const { return true; } | 6854 virtual bool IsDeletable() const { return true; } |
| 6855 }; | 6855 }; |
| 6856 | 6856 |
| 6857 | 6857 |
| 6858 #undef DECLARE_INSTRUCTION | 6858 #undef DECLARE_INSTRUCTION |
| 6859 #undef DECLARE_CONCRETE_INSTRUCTION | 6859 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6860 | 6860 |
| 6861 } } // namespace v8::internal | 6861 } } // namespace v8::internal |
| 6862 | 6862 |
| 6863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |