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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 // Convert the smi or heap number in object to an int32 using the rules | 631 // Convert the smi or heap number in object to an int32 using the rules |
632 // for ToInt32 as described in ECMAScript 9.5.: the value is truncated | 632 // for ToInt32 as described in ECMAScript 9.5.: the value is truncated |
633 // and brought into the range -2^31 .. +2^31 - 1. | 633 // and brought into the range -2^31 .. +2^31 - 1. |
634 static void ConvertNumberToInt32(MacroAssembler* masm, | 634 static void ConvertNumberToInt32(MacroAssembler* masm, |
635 Register object, | 635 Register object, |
636 Register dst, | 636 Register dst, |
637 Register heap_number_map, | 637 Register heap_number_map, |
638 Register scratch1, | 638 Register scratch1, |
639 Register scratch2, | 639 Register scratch2, |
640 Register scratch3, | 640 Register scratch3, |
641 DwVfpRegister double_scratch, | 641 DwVfpRegister double_scratch1, |
| 642 DwVfpRegister double_scratch2, |
642 Label* not_int32); | 643 Label* not_int32); |
643 | 644 |
644 // Converts the integer (untagged smi) in |int_scratch| to a double, storing | 645 // Converts the integer (untagged smi) in |int_scratch| to a double, storing |
645 // the result either in |double_dst| or |dst2:dst1|, depending on | 646 // the result either in |double_dst| or |dst2:dst1|, depending on |
646 // |destination|. | 647 // |destination|. |
647 // Warning: The value in |int_scratch| will be changed in the process! | 648 // Warning: The value in |int_scratch| will be changed in the process! |
648 static void ConvertIntToDouble(MacroAssembler* masm, | 649 static void ConvertIntToDouble(MacroAssembler* masm, |
649 Register int_scratch, | 650 Register int_scratch, |
650 Destination destination, | 651 Destination destination, |
651 DwVfpRegister double_dst, | 652 DwVfpRegister double_dst, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 | 792 |
792 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 793 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
793 | 794 |
794 LookupMode mode_; | 795 LookupMode mode_; |
795 }; | 796 }; |
796 | 797 |
797 | 798 |
798 } } // namespace v8::internal | 799 } } // namespace v8::internal |
799 | 800 |
800 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 801 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
OLD | NEW |