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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 | 735 |
736 void Assembler::bsrl(Register dst, Register src) { | 736 void Assembler::bsrl(Register dst, Register src) { |
737 EnsureSpace ensure_space(this); | 737 EnsureSpace ensure_space(this); |
738 emit_optional_rex_32(dst, src); | 738 emit_optional_rex_32(dst, src); |
739 emit(0x0F); | 739 emit(0x0F); |
740 emit(0xBD); | 740 emit(0xBD); |
741 emit_modrm(dst, src); | 741 emit_modrm(dst, src); |
742 } | 742 } |
743 | 743 |
744 | 744 |
| 745 void Assembler::bsrl(Register dst, const Operand& src) { |
| 746 EnsureSpace ensure_space(this); |
| 747 emit_optional_rex_32(dst, src); |
| 748 emit(0x0F); |
| 749 emit(0xBD); |
| 750 emit_operand(dst, src); |
| 751 } |
| 752 |
| 753 |
745 void Assembler::call(Label* L) { | 754 void Assembler::call(Label* L) { |
746 positions_recorder()->WriteRecordedPositions(); | 755 positions_recorder()->WriteRecordedPositions(); |
747 EnsureSpace ensure_space(this); | 756 EnsureSpace ensure_space(this); |
748 // 1110 1000 #32-bit disp. | 757 // 1110 1000 #32-bit disp. |
749 emit(0xE8); | 758 emit(0xE8); |
750 if (L->is_bound()) { | 759 if (L->is_bound()) { |
751 int offset = L->pos() - pc_offset() - sizeof(int32_t); | 760 int offset = L->pos() - pc_offset() - sizeof(int32_t); |
752 DCHECK(offset <= 0); | 761 DCHECK(offset <= 0); |
753 emitl(offset); | 762 emitl(offset); |
754 } else if (L->is_linked()) { | 763 } else if (L->is_linked()) { |
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3521 | 3530 |
3522 | 3531 |
3523 bool RelocInfo::IsInConstantPool() { | 3532 bool RelocInfo::IsInConstantPool() { |
3524 return false; | 3533 return false; |
3525 } | 3534 } |
3526 | 3535 |
3527 | 3536 |
3528 } } // namespace v8::internal | 3537 } } // namespace v8::internal |
3529 | 3538 |
3530 #endif // V8_TARGET_ARCH_X64 | 3539 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |