| 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 3212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3223 // Default arguments to is_not_in_new_space depend on this heap number | 3223 // Default arguments to is_not_in_new_space depend on this heap number |
| 3224 // to be tenured so that it's guaranteed not be be located in new space. | 3224 // to be tenured so that it's guaranteed not be be located in new space. |
| 3225 handle_ = factory->NewNumber(double_value_, TENURED); | 3225 handle_ = factory->NewNumber(double_value_, TENURED); |
| 3226 } | 3226 } |
| 3227 AllowDeferredHandleDereference smi_check; | 3227 AllowDeferredHandleDereference smi_check; |
| 3228 ASSERT(has_int32_value_ || !handle_->IsSmi()); | 3228 ASSERT(has_int32_value_ || !handle_->IsSmi()); |
| 3229 return handle_; | 3229 return handle_; |
| 3230 } | 3230 } |
| 3231 | 3231 |
| 3232 bool InstanceOf(Handle<Map> map) { | 3232 bool InstanceOf(Handle<Map> map) { |
| 3233 return handle()->IsJSObject() && | 3233 Handle<Object> constant_object = handle(); |
| 3234 Handle<JSObject>::cast(handle())->map() == *map; | 3234 return constant_object->IsJSObject() && |
| 3235 Handle<JSObject>::cast(constant_object)->map() == *map; |
| 3235 } | 3236 } |
| 3236 | 3237 |
| 3237 bool IsSpecialDouble() const { | 3238 bool IsSpecialDouble() const { |
| 3238 return has_double_value_ && | 3239 return has_double_value_ && |
| 3239 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || | 3240 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || |
| 3240 FixedDoubleArray::is_the_hole_nan(double_value_) || | 3241 FixedDoubleArray::is_the_hole_nan(double_value_) || |
| 3241 std::isnan(double_value_)); | 3242 std::isnan(double_value_)); |
| 3242 } | 3243 } |
| 3243 | 3244 |
| 3244 bool NotInNewSpace() const { | 3245 bool NotInNewSpace() const { |
| (...skipping 3542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6787 virtual bool IsDeletable() const { return true; } | 6788 virtual bool IsDeletable() const { return true; } |
| 6788 }; | 6789 }; |
| 6789 | 6790 |
| 6790 | 6791 |
| 6791 #undef DECLARE_INSTRUCTION | 6792 #undef DECLARE_INSTRUCTION |
| 6792 #undef DECLARE_CONCRETE_INSTRUCTION | 6793 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6793 | 6794 |
| 6794 } } // namespace v8::internal | 6795 } } // namespace v8::internal |
| 6795 | 6796 |
| 6796 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6797 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |