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 4646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4657 | 4657 |
4658 | 4658 |
4659 void Assembler::emit_sse_operand(Register dst, XMMRegister src) { | 4659 void Assembler::emit_sse_operand(Register dst, XMMRegister src) { |
4660 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 4660 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
4661 } | 4661 } |
4662 | 4662 |
4663 void Assembler::emit_sse_operand(XMMRegister dst) { | 4663 void Assembler::emit_sse_operand(XMMRegister dst) { |
4664 emit(0xD8 | dst.low_bits()); | 4664 emit(0xD8 | dst.low_bits()); |
4665 } | 4665 } |
4666 | 4666 |
| 4667 void Assembler::RecordProtectedInstruction(int pc_offset, byte* landing) { |
| 4668 EnsureSpace ensure_space(this); |
| 4669 RelocInfo rinfo(isolate(), landing, |
| 4670 RelocInfo::WASM_PROTECTED_INSTRUCTION_LANDING, pc_offset, |
| 4671 nullptr); |
| 4672 reloc_info_writer.Write(&rinfo); |
| 4673 } |
| 4674 |
4667 | 4675 |
4668 void Assembler::db(uint8_t data) { | 4676 void Assembler::db(uint8_t data) { |
4669 EnsureSpace ensure_space(this); | 4677 EnsureSpace ensure_space(this); |
4670 emit(data); | 4678 emit(data); |
4671 } | 4679 } |
4672 | 4680 |
4673 | 4681 |
4674 void Assembler::dd(uint32_t data) { | 4682 void Assembler::dd(uint32_t data) { |
4675 EnsureSpace ensure_space(this); | 4683 EnsureSpace ensure_space(this); |
4676 emitl(data); | 4684 emitl(data); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4737 | 4745 |
4738 bool RelocInfo::IsInConstantPool() { | 4746 bool RelocInfo::IsInConstantPool() { |
4739 return false; | 4747 return false; |
4740 } | 4748 } |
4741 | 4749 |
4742 | 4750 |
4743 } // namespace internal | 4751 } // namespace internal |
4744 } // namespace v8 | 4752 } // namespace v8 |
4745 | 4753 |
4746 #endif // V8_TARGET_ARCH_X64 | 4754 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |