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 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 | 1639 |
1640 void Assembler::movzxwl(Register dst, const Operand& src) { | 1640 void Assembler::movzxwl(Register dst, const Operand& src) { |
1641 EnsureSpace ensure_space(this); | 1641 EnsureSpace ensure_space(this); |
1642 emit_optional_rex_32(dst, src); | 1642 emit_optional_rex_32(dst, src); |
1643 emit(0x0F); | 1643 emit(0x0F); |
1644 emit(0xB7); | 1644 emit(0xB7); |
1645 emit_operand(dst, src); | 1645 emit_operand(dst, src); |
1646 } | 1646 } |
1647 | 1647 |
1648 | 1648 |
1649 void Assembler::movzxwl(Register dst, Register src) { | |
1650 EnsureSpace ensure_space(this); | |
1651 emit_optional_rex_32(dst, src); | |
1652 emit(0x0F); | |
1653 emit(0xB7); | |
1654 emit_modrm(dst, src); | |
1655 } | |
1656 | |
1657 | |
1658 void Assembler::repmovsb() { | 1649 void Assembler::repmovsb() { |
1659 EnsureSpace ensure_space(this); | 1650 EnsureSpace ensure_space(this); |
1660 emit(0xF3); | 1651 emit(0xF3); |
1661 emit(0xA4); | 1652 emit(0xA4); |
1662 } | 1653 } |
1663 | 1654 |
1664 | 1655 |
1665 void Assembler::repmovsw() { | 1656 void Assembler::repmovsw() { |
1666 EnsureSpace ensure_space(this); | 1657 EnsureSpace ensure_space(this); |
1667 emit(0x66); // Operand size override. | 1658 emit(0x66); // Operand size override. |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3050 bool RelocInfo::IsCodedSpecially() { | 3041 bool RelocInfo::IsCodedSpecially() { |
3051 // The deserializer needs to know whether a pointer is specially coded. Being | 3042 // The deserializer needs to know whether a pointer is specially coded. Being |
3052 // specially coded on x64 means that it is a relative 32 bit address, as used | 3043 // specially coded on x64 means that it is a relative 32 bit address, as used |
3053 // by branch instructions. | 3044 // by branch instructions. |
3054 return (1 << rmode_) & kApplyMask; | 3045 return (1 << rmode_) & kApplyMask; |
3055 } | 3046 } |
3056 | 3047 |
3057 } } // namespace v8::internal | 3048 } } // namespace v8::internal |
3058 | 3049 |
3059 #endif // V8_TARGET_ARCH_X64 | 3050 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |