OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 | 738 |
739 void Assembler::bsrl(Register dst, const Operand& src) { | 739 void Assembler::bsrl(Register dst, const Operand& src) { |
740 EnsureSpace ensure_space(this); | 740 EnsureSpace ensure_space(this); |
741 emit_optional_rex_32(dst, src); | 741 emit_optional_rex_32(dst, src); |
742 emit(0x0F); | 742 emit(0x0F); |
743 emit(0xBD); | 743 emit(0xBD); |
744 emit_operand(dst, src); | 744 emit_operand(dst, src); |
745 } | 745 } |
746 | 746 |
747 | 747 |
| 748 void Assembler::bsrq(Register dst, Register src) { |
| 749 EnsureSpace ensure_space(this); |
| 750 emit_rex_64(dst, src); |
| 751 emit(0x0F); |
| 752 emit(0xBD); |
| 753 emit_modrm(dst, src); |
| 754 } |
| 755 |
| 756 |
| 757 void Assembler::bsrq(Register dst, const Operand& src) { |
| 758 EnsureSpace ensure_space(this); |
| 759 emit_rex_64(dst, src); |
| 760 emit(0x0F); |
| 761 emit(0xBD); |
| 762 emit_operand(dst, src); |
| 763 } |
| 764 |
| 765 |
748 void Assembler::bsfl(Register dst, Register src) { | 766 void Assembler::bsfl(Register dst, Register src) { |
749 EnsureSpace ensure_space(this); | 767 EnsureSpace ensure_space(this); |
750 emit_optional_rex_32(dst, src); | 768 emit_optional_rex_32(dst, src); |
751 emit(0x0F); | 769 emit(0x0F); |
752 emit(0xBC); | 770 emit(0xBC); |
753 emit_modrm(dst, src); | 771 emit_modrm(dst, src); |
754 } | 772 } |
755 | 773 |
756 | 774 |
757 void Assembler::bsfl(Register dst, const Operand& src) { | 775 void Assembler::bsfl(Register dst, const Operand& src) { |
(...skipping 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4041 | 4059 |
4042 bool RelocInfo::IsInConstantPool() { | 4060 bool RelocInfo::IsInConstantPool() { |
4043 return false; | 4061 return false; |
4044 } | 4062 } |
4045 | 4063 |
4046 | 4064 |
4047 } // namespace internal | 4065 } // namespace internal |
4048 } // namespace v8 | 4066 } // namespace v8 |
4049 | 4067 |
4050 #endif // V8_TARGET_ARCH_X64 | 4068 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |