| 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 3296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3307 return type_from_value_.IsString(); | 3307 return type_from_value_.IsString(); |
| 3308 } | 3308 } |
| 3309 Handle<String> StringValue() const { | 3309 Handle<String> StringValue() const { |
| 3310 ASSERT(HasStringValue()); | 3310 ASSERT(HasStringValue()); |
| 3311 return Handle<String>::cast(handle_); | 3311 return Handle<String>::cast(handle_); |
| 3312 } | 3312 } |
| 3313 bool HasInternalizedStringValue() const { | 3313 bool HasInternalizedStringValue() const { |
| 3314 return HasStringValue() && is_internalized_string_; | 3314 return HasStringValue() && is_internalized_string_; |
| 3315 } | 3315 } |
| 3316 | 3316 |
| 3317 bool HasBooleanValue() const { return type_from_value_.IsBoolean(); } |
| 3317 bool BooleanValue() const { return boolean_value_; } | 3318 bool BooleanValue() const { return boolean_value_; } |
| 3318 | 3319 |
| 3319 virtual intptr_t Hashcode() { | 3320 virtual intptr_t Hashcode() { |
| 3320 if (has_int32_value_) { | 3321 if (has_int32_value_) { |
| 3321 return static_cast<intptr_t>(int32_value_); | 3322 return static_cast<intptr_t>(int32_value_); |
| 3322 } else if (has_double_value_) { | 3323 } else if (has_double_value_) { |
| 3323 return static_cast<intptr_t>(BitCast<int64_t>(double_value_)); | 3324 return static_cast<intptr_t>(BitCast<int64_t>(double_value_)); |
| 3324 } else { | 3325 } else { |
| 3325 ASSERT(!handle_.is_null()); | 3326 ASSERT(!handle_.is_null()); |
| 3326 return unique_id_.Hashcode(); | 3327 return unique_id_.Hashcode(); |
| (...skipping 3232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6559 virtual bool IsDeletable() const { return true; } | 6560 virtual bool IsDeletable() const { return true; } |
| 6560 }; | 6561 }; |
| 6561 | 6562 |
| 6562 | 6563 |
| 6563 #undef DECLARE_INSTRUCTION | 6564 #undef DECLARE_INSTRUCTION |
| 6564 #undef DECLARE_CONCRETE_INSTRUCTION | 6565 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6565 | 6566 |
| 6566 } } // namespace v8::internal | 6567 } } // namespace v8::internal |
| 6567 | 6568 |
| 6568 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6569 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |