| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 Cneg(mantissa, mantissa, ne); | 2537 Cneg(mantissa, mantissa, ne); |
| 2538 | 2538 |
| 2539 // Shift the mantissa bits in the correct place. We know that we have to shift | 2539 // Shift the mantissa bits in the correct place. We know that we have to shift |
| 2540 // it left here, because exponent >= 63 >= kMantissaBits. | 2540 // it left here, because exponent >= 63 >= kMantissaBits. |
| 2541 Sub(exponent, exponent, | 2541 Sub(exponent, exponent, |
| 2542 HeapNumber::kExponentBias + HeapNumber::kMantissaBits); | 2542 HeapNumber::kExponentBias + HeapNumber::kMantissaBits); |
| 2543 Lsl(result, mantissa, exponent); | 2543 Lsl(result, mantissa, exponent); |
| 2544 | 2544 |
| 2545 Bind(&tag); | 2545 Bind(&tag); |
| 2546 switch (format) { | 2546 switch (format) { |
| 2547 case INT32_IN_W: | 2547 case INT32: |
| 2548 // There is nothing to do; the upper 32 bits are undefined. | |
| 2549 if (emit_debug_code()) { | |
| 2550 __ Mov(scratch1, 0x55555555); | |
| 2551 __ Bfi(result, scratch1, 32, 32); | |
| 2552 } | |
| 2553 break; | |
| 2554 case INT32_IN_X: | |
| 2555 Sxtw(result, result); | 2548 Sxtw(result, result); |
| 2556 break; | 2549 break; |
| 2557 case SMI: | 2550 case SMI: |
| 2558 SmiTag(result); | 2551 SmiTag(result); |
| 2559 break; | 2552 break; |
| 2560 } | 2553 } |
| 2561 | 2554 |
| 2562 Bind(&done); | 2555 Bind(&done); |
| 2563 } | 2556 } |
| 2564 | 2557 |
| (...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4796 } | 4789 } |
| 4797 } | 4790 } |
| 4798 | 4791 |
| 4799 | 4792 |
| 4800 #undef __ | 4793 #undef __ |
| 4801 | 4794 |
| 4802 | 4795 |
| 4803 } } // namespace v8::internal | 4796 } } // namespace v8::internal |
| 4804 | 4797 |
| 4805 #endif // V8_TARGET_ARCH_A64 | 4798 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |