| 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 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3270 } | 3270 } |
| 3271 | 3271 |
| 3272 virtual Representation RequiredInputRepresentation(int index) { | 3272 virtual Representation RequiredInputRepresentation(int index) { |
| 3273 return Representation::None(); | 3273 return Representation::None(); |
| 3274 } | 3274 } |
| 3275 | 3275 |
| 3276 virtual bool IsConvertibleToInteger() const { | 3276 virtual bool IsConvertibleToInteger() const { |
| 3277 return has_int32_value_; | 3277 return has_int32_value_; |
| 3278 } | 3278 } |
| 3279 | 3279 |
| 3280 virtual bool EmitAtUses() { | 3280 virtual bool EmitAtUses() { return !representation().IsDouble(); } |
| 3281 return !representation().IsDouble() || IsSpecialDouble(); | |
| 3282 } | |
| 3283 virtual void PrintDataTo(StringStream* stream); | 3281 virtual void PrintDataTo(StringStream* stream); |
| 3284 virtual HType CalculateInferredType(); | 3282 virtual HType CalculateInferredType(); |
| 3285 bool IsInteger() { return handle()->IsSmi(); } | 3283 bool IsInteger() { return handle()->IsSmi(); } |
| 3286 HConstant* CopyToRepresentation(Representation r, Zone* zone) const; | 3284 HConstant* CopyToRepresentation(Representation r, Zone* zone) const; |
| 3287 HConstant* CopyToTruncatedInt32(Zone* zone) const; | 3285 HConstant* CopyToTruncatedInt32(Zone* zone) const; |
| 3288 bool HasInteger32Value() const { return has_int32_value_; } | 3286 bool HasInteger32Value() const { return has_int32_value_; } |
| 3289 int32_t Integer32Value() const { | 3287 int32_t Integer32Value() const { |
| 3290 ASSERT(HasInteger32Value()); | 3288 ASSERT(HasInteger32Value()); |
| 3291 return int32_value_; | 3289 return int32_value_; |
| 3292 } | 3290 } |
| (...skipping 3200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6493 virtual bool IsDeletable() const { return true; } | 6491 virtual bool IsDeletable() const { return true; } |
| 6494 }; | 6492 }; |
| 6495 | 6493 |
| 6496 | 6494 |
| 6497 #undef DECLARE_INSTRUCTION | 6495 #undef DECLARE_INSTRUCTION |
| 6498 #undef DECLARE_CONCRETE_INSTRUCTION | 6496 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6499 | 6497 |
| 6500 } } // namespace v8::internal | 6498 } } // namespace v8::internal |
| 6501 | 6499 |
| 6502 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6500 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |