| 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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3240 Handle<Object> optional_handle = Handle<Object>::null()); | 3240 Handle<Object> optional_handle = Handle<Object>::null()); |
| 3241 HConstant(Handle<Object> handle, | 3241 HConstant(Handle<Object> handle, |
| 3242 UniqueValueId unique_id, | 3242 UniqueValueId unique_id, |
| 3243 Representation r, | 3243 Representation r, |
| 3244 HType type, | 3244 HType type, |
| 3245 bool is_internalized_string, | 3245 bool is_internalized_string, |
| 3246 bool boolean_value); | 3246 bool boolean_value); |
| 3247 | 3247 |
| 3248 Handle<Object> handle() { | 3248 Handle<Object> handle() { |
| 3249 if (handle_.is_null()) { | 3249 if (handle_.is_null()) { |
| 3250 handle_ = isolate()->factory()->NewNumber(double_value_, TENURED); | 3250 handle_ = FACTORY->NewNumber(double_value_, TENURED); |
| 3251 } | 3251 } |
| 3252 ALLOW_HANDLE_DEREF(isolate(), "smi check"); | 3252 ALLOW_HANDLE_DEREF(Isolate::Current(), "smi check"); |
| 3253 ASSERT(has_int32_value_ || !handle_->IsSmi()); | 3253 ASSERT(has_int32_value_ || !handle_->IsSmi()); |
| 3254 return handle_; | 3254 return handle_; |
| 3255 } | 3255 } |
| 3256 | 3256 |
| 3257 bool IsSpecialDouble() const { | 3257 bool IsSpecialDouble() const { |
| 3258 return has_double_value_ && | 3258 return has_double_value_ && |
| 3259 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || | 3259 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || |
| 3260 FixedDoubleArray::is_the_hole_nan(double_value_) || | 3260 FixedDoubleArray::is_the_hole_nan(double_value_) || |
| 3261 std::isnan(double_value_)); | 3261 std::isnan(double_value_)); |
| 3262 } | 3262 } |
| (...skipping 3281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6544 virtual bool IsDeletable() const { return true; } | 6544 virtual bool IsDeletable() const { return true; } |
| 6545 }; | 6545 }; |
| 6546 | 6546 |
| 6547 | 6547 |
| 6548 #undef DECLARE_INSTRUCTION | 6548 #undef DECLARE_INSTRUCTION |
| 6549 #undef DECLARE_CONCRETE_INSTRUCTION | 6549 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6550 | 6550 |
| 6551 } } // namespace v8::internal | 6551 } } // namespace v8::internal |
| 6552 | 6552 |
| 6553 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6553 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |