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 4651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4662 | 4662 |
4663 | 4663 |
4664 void Assembler::emit_sse_operand(Register dst, XMMRegister src) { | 4664 void Assembler::emit_sse_operand(Register dst, XMMRegister src) { |
4665 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); | 4665 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
4666 } | 4666 } |
4667 | 4667 |
4668 void Assembler::emit_sse_operand(XMMRegister dst) { | 4668 void Assembler::emit_sse_operand(XMMRegister dst) { |
4669 emit(0xD8 | dst.low_bits()); | 4669 emit(0xD8 | dst.low_bits()); |
4670 } | 4670 } |
4671 | 4671 |
4672 void Assembler::RecordProtectedInstruction(int pc_offset, byte* landing) { | 4672 void Assembler::RecordProtectedInstructionLanding(int pc_offset) { |
4673 EnsureSpace ensure_space(this); | 4673 EnsureSpace ensure_space(this); |
4674 RelocInfo rinfo(isolate(), landing, | 4674 RelocInfo rinfo(isolate(), pc(), |
4675 RelocInfo::WASM_PROTECTED_INSTRUCTION_LANDING, pc_offset, | 4675 RelocInfo::WASM_PROTECTED_INSTRUCTION_LANDING, pc_offset, |
4676 nullptr); | 4676 nullptr); |
4677 reloc_info_writer.Write(&rinfo); | 4677 reloc_info_writer.Write(&rinfo); |
4678 } | 4678 } |
4679 | 4679 |
4680 | 4680 |
4681 void Assembler::db(uint8_t data) { | 4681 void Assembler::db(uint8_t data) { |
4682 EnsureSpace ensure_space(this); | 4682 EnsureSpace ensure_space(this); |
4683 emit(data); | 4683 emit(data); |
4684 } | 4684 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4750 | 4750 |
4751 bool RelocInfo::IsInConstantPool() { | 4751 bool RelocInfo::IsInConstantPool() { |
4752 return false; | 4752 return false; |
4753 } | 4753 } |
4754 | 4754 |
4755 | 4755 |
4756 } // namespace internal | 4756 } // namespace internal |
4757 } // namespace v8 | 4757 } // namespace v8 |
4758 | 4758 |
4759 #endif // V8_TARGET_ARCH_X64 | 4759 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |