| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 } | 1996 } |
| 1997 | 1997 |
| 1998 virtual Representation RequiredInputRepresentation(int index) const { | 1998 virtual Representation RequiredInputRepresentation(int index) const { |
| 1999 return Representation::Tagged(); | 1999 return Representation::Tagged(); |
| 2000 } | 2000 } |
| 2001 | 2001 |
| 2002 #ifdef DEBUG | 2002 #ifdef DEBUG |
| 2003 virtual void Verify(); | 2003 virtual void Verify(); |
| 2004 #endif | 2004 #endif |
| 2005 | 2005 |
| 2006 virtual HValue* Canonicalize() { | 2006 virtual HValue* Canonicalize(); |
| 2007 if (!value()->type().IsUninitialized() && | |
| 2008 value()->type().IsString() && | |
| 2009 check_ == IS_STRING) { | |
| 2010 return NULL; | |
| 2011 } | |
| 2012 return this; | |
| 2013 } | |
| 2014 | 2007 |
| 2015 bool is_interval_check() const { return check_ <= LAST_INTERVAL_CHECK; } | 2008 bool is_interval_check() const { return check_ <= LAST_INTERVAL_CHECK; } |
| 2016 void GetCheckInterval(InstanceType* first, InstanceType* last); | 2009 void GetCheckInterval(InstanceType* first, InstanceType* last); |
| 2017 void GetCheckMaskAndTag(uint8_t* mask, uint8_t* tag); | 2010 void GetCheckMaskAndTag(uint8_t* mask, uint8_t* tag); |
| 2018 | 2011 |
| 2019 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType) | 2012 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType) |
| 2020 | 2013 |
| 2021 protected: | 2014 protected: |
| 2022 // TODO(ager): It could be nice to allow the ommision of instance | 2015 // TODO(ager): It could be nice to allow the ommision of instance |
| 2023 // type checks if we have already performed an instance type check | 2016 // type checks if we have already performed an instance type check |
| (...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4152 | 4145 |
| 4153 DECLARE_CONCRETE_INSTRUCTION(In) | 4146 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4154 }; | 4147 }; |
| 4155 | 4148 |
| 4156 #undef DECLARE_INSTRUCTION | 4149 #undef DECLARE_INSTRUCTION |
| 4157 #undef DECLARE_CONCRETE_INSTRUCTION | 4150 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4158 | 4151 |
| 4159 } } // namespace v8::internal | 4152 } } // namespace v8::internal |
| 4160 | 4153 |
| 4161 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4154 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |