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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name, | 777 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name, |
778 Label::Distance distance = Label::kFar); | 778 Label::Distance distance = Label::kFar); |
779 | 779 |
780 // --------------------------------------------------------------------------- | 780 // --------------------------------------------------------------------------- |
781 // Macro instructions. | 781 // Macro instructions. |
782 | 782 |
783 // Load a register with a long value as efficiently as possible. | 783 // Load a register with a long value as efficiently as possible. |
784 void Set(Register dst, int64_t x); | 784 void Set(Register dst, int64_t x); |
785 void Set(const Operand& dst, int64_t x); | 785 void Set(const Operand& dst, int64_t x); |
786 | 786 |
| 787 // Use xorps to clear out the destination register before cvtlsi2sd |
| 788 void Cvtlsi2sd(XMMRegister dst, Register src); |
| 789 void Cvtlsi2sd(XMMRegister dst, const Operand& src); |
| 790 |
787 // Move if the registers are not identical. | 791 // Move if the registers are not identical. |
788 void Move(Register target, Register source); | 792 void Move(Register target, Register source); |
789 | 793 |
790 // Bit-field support. | 794 // Bit-field support. |
791 void TestBit(const Operand& dst, int bit_index); | 795 void TestBit(const Operand& dst, int bit_index); |
792 | 796 |
793 // Handle support | 797 // Handle support |
794 void Move(Register dst, Handle<Object> source); | 798 void Move(Register dst, Handle<Object> source); |
795 void Move(const Operand& dst, Handle<Object> source); | 799 void Move(const Operand& dst, Handle<Object> source); |
796 void Cmp(Register dst, Handle<Object> source); | 800 void Cmp(Register dst, Handle<Object> source); |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 masm->popfq(); \ | 1554 masm->popfq(); \ |
1551 } \ | 1555 } \ |
1552 masm-> | 1556 masm-> |
1553 #else | 1557 #else |
1554 #define ACCESS_MASM(masm) masm-> | 1558 #define ACCESS_MASM(masm) masm-> |
1555 #endif | 1559 #endif |
1556 | 1560 |
1557 } } // namespace v8::internal | 1561 } } // namespace v8::internal |
1558 | 1562 |
1559 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1563 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |