| 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 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3355 return HasStringValue() && is_internalized_string_; | 3355 return HasStringValue() && is_internalized_string_; |
| 3356 } | 3356 } |
| 3357 | 3357 |
| 3358 bool HasExternalReferenceValue() const { | 3358 bool HasExternalReferenceValue() const { |
| 3359 return has_external_reference_value_; | 3359 return has_external_reference_value_; |
| 3360 } | 3360 } |
| 3361 ExternalReference ExternalReferenceValue() const { | 3361 ExternalReference ExternalReferenceValue() const { |
| 3362 return external_reference_value_; | 3362 return external_reference_value_; |
| 3363 } | 3363 } |
| 3364 | 3364 |
| 3365 bool HasBooleanValue() const { return type_.IsBoolean(); } |
| 3365 bool BooleanValue() const { return boolean_value_; } | 3366 bool BooleanValue() const { return boolean_value_; } |
| 3366 | 3367 |
| 3367 virtual intptr_t Hashcode() { | 3368 virtual intptr_t Hashcode() { |
| 3368 if (has_int32_value_) { | 3369 if (has_int32_value_) { |
| 3369 return static_cast<intptr_t>(int32_value_); | 3370 return static_cast<intptr_t>(int32_value_); |
| 3370 } else if (has_double_value_) { | 3371 } else if (has_double_value_) { |
| 3371 return static_cast<intptr_t>(BitCast<int64_t>(double_value_)); | 3372 return static_cast<intptr_t>(BitCast<int64_t>(double_value_)); |
| 3372 } else if (has_external_reference_value_) { | 3373 } else if (has_external_reference_value_) { |
| 3373 return reinterpret_cast<intptr_t>(external_reference_value_.address()); | 3374 return reinterpret_cast<intptr_t>(external_reference_value_.address()); |
| 3374 } else { | 3375 } else { |
| (...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6773 virtual bool IsDeletable() const { return true; } | 6774 virtual bool IsDeletable() const { return true; } |
| 6774 }; | 6775 }; |
| 6775 | 6776 |
| 6776 | 6777 |
| 6777 #undef DECLARE_INSTRUCTION | 6778 #undef DECLARE_INSTRUCTION |
| 6778 #undef DECLARE_CONCRETE_INSTRUCTION | 6779 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6779 | 6780 |
| 6780 } } // namespace v8::internal | 6781 } } // namespace v8::internal |
| 6781 | 6782 |
| 6782 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6783 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |