| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 367 } |
| 368 | 368 |
| 369 bool Equals(const HType& other) const { | 369 bool Equals(const HType& other) const { |
| 370 return type_ == other.type_; | 370 return type_ == other.type_; |
| 371 } | 371 } |
| 372 | 372 |
| 373 bool IsSubtypeOf(const HType& other) { | 373 bool IsSubtypeOf(const HType& other) { |
| 374 return Combine(other).Equals(other); | 374 return Combine(other).Equals(other); |
| 375 } | 375 } |
| 376 | 376 |
| 377 bool IsTagged() const { | |
| 378 return ((type_ & kTagged) == kTagged); | |
| 379 } | |
| 380 | |
| 381 bool IsTaggedPrimitive() const { | 377 bool IsTaggedPrimitive() const { |
| 382 return ((type_ & kTaggedPrimitive) == kTaggedPrimitive); | 378 return ((type_ & kTaggedPrimitive) == kTaggedPrimitive); |
| 383 } | 379 } |
| 384 | 380 |
| 385 bool IsTaggedNumber() const { | 381 bool IsTaggedNumber() const { |
| 386 return ((type_ & kTaggedNumber) == kTaggedNumber); | 382 return ((type_ & kTaggedNumber) == kTaggedNumber); |
| 387 } | 383 } |
| 388 | 384 |
| 389 bool IsSmi() const { | 385 bool IsSmi() const { |
| 390 return ((type_ & kSmi) == kSmi); | 386 return ((type_ & kSmi) == kSmi); |
| (...skipping 6566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6957 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 6953 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 6958 }; | 6954 }; |
| 6959 | 6955 |
| 6960 | 6956 |
| 6961 #undef DECLARE_INSTRUCTION | 6957 #undef DECLARE_INSTRUCTION |
| 6962 #undef DECLARE_CONCRETE_INSTRUCTION | 6958 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6963 | 6959 |
| 6964 } } // namespace v8::internal | 6960 } } // namespace v8::internal |
| 6965 | 6961 |
| 6966 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6962 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |