| 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 3372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3383 return has_double_value_ && | 3383 return has_double_value_ && |
| 3384 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || | 3384 (BitCast<int64_t>(double_value_) == BitCast<int64_t>(-0.0) || |
| 3385 FixedDoubleArray::is_the_hole_nan(double_value_) || | 3385 FixedDoubleArray::is_the_hole_nan(double_value_) || |
| 3386 std::isnan(double_value_)); | 3386 std::isnan(double_value_)); |
| 3387 } | 3387 } |
| 3388 | 3388 |
| 3389 bool NotInNewSpace() const { | 3389 bool NotInNewSpace() const { |
| 3390 return is_not_in_new_space_; | 3390 return is_not_in_new_space_; |
| 3391 } | 3391 } |
| 3392 | 3392 |
| 3393 bool ImmortalImmovable() const { | 3393 bool ImmortalImmovable() const; |
| 3394 if (has_int32_value_) { | |
| 3395 return false; | |
| 3396 } | |
| 3397 if (has_double_value_) { | |
| 3398 if (IsSpecialDouble()) { | |
| 3399 return true; | |
| 3400 } | |
| 3401 return false; | |
| 3402 } | |
| 3403 if (has_external_reference_value_) { | |
| 3404 return false; | |
| 3405 } | |
| 3406 | |
| 3407 ASSERT(!object_.handle().is_null()); | |
| 3408 Heap* heap = isolate()->heap(); | |
| 3409 ASSERT(!object_.IsKnownGlobal(heap->minus_zero_value())); | |
| 3410 ASSERT(!object_.IsKnownGlobal(heap->nan_value())); | |
| 3411 return | |
| 3412 object_.IsKnownGlobal(heap->undefined_value()) || | |
| 3413 object_.IsKnownGlobal(heap->uninitialized_value()) || | |
| 3414 object_.IsKnownGlobal(heap->null_value()) || | |
| 3415 object_.IsKnownGlobal(heap->true_value()) || | |
| 3416 object_.IsKnownGlobal(heap->false_value()) || | |
| 3417 object_.IsKnownGlobal(heap->the_hole_value()) || | |
| 3418 object_.IsKnownGlobal(heap->empty_string()) || | |
| 3419 object_.IsKnownGlobal(heap->empty_fixed_array()); | |
| 3420 } | |
| 3421 | 3394 |
| 3422 bool IsCell() const { | 3395 bool IsCell() const { |
| 3423 return is_cell_; | 3396 return is_cell_; |
| 3424 } | 3397 } |
| 3425 | 3398 |
| 3426 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 3399 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 3427 return Representation::None(); | 3400 return Representation::None(); |
| 3428 } | 3401 } |
| 3429 | 3402 |
| 3430 virtual Representation KnownOptimalRepresentation() V8_OVERRIDE { | 3403 virtual Representation KnownOptimalRepresentation() V8_OVERRIDE { |
| (...skipping 3980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7411 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7384 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7412 }; | 7385 }; |
| 7413 | 7386 |
| 7414 | 7387 |
| 7415 #undef DECLARE_INSTRUCTION | 7388 #undef DECLARE_INSTRUCTION |
| 7416 #undef DECLARE_CONCRETE_INSTRUCTION | 7389 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7417 | 7390 |
| 7418 } } // namespace v8::internal | 7391 } } // namespace v8::internal |
| 7419 | 7392 |
| 7420 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7393 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |