| 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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 | 1326 |
| 1327 | 1327 |
| 1328 void Assembler::jmp(Handle<Code> target, RelocInfo::Mode rmode) { | 1328 void Assembler::jmp(Handle<Code> target, RelocInfo::Mode rmode) { |
| 1329 EnsureSpace ensure_space(this); | 1329 EnsureSpace ensure_space(this); |
| 1330 // 1110 1001 #32-bit disp. | 1330 // 1110 1001 #32-bit disp. |
| 1331 emit(0xE9); | 1331 emit(0xE9); |
| 1332 emit_code_target(target, rmode); | 1332 emit_code_target(target, rmode); |
| 1333 } | 1333 } |
| 1334 | 1334 |
| 1335 | 1335 |
| 1336 void Assembler::jmp(Address entry, RelocInfo::Mode rmode) { | |
| 1337 DCHECK(RelocInfo::IsRuntimeEntry(rmode)); | |
| 1338 EnsureSpace ensure_space(this); | |
| 1339 DCHECK(RelocInfo::IsRuntimeEntry(rmode)); | |
| 1340 emit(0xE9); | |
| 1341 emit_runtime_entry(entry, rmode); | |
| 1342 } | |
| 1343 | |
| 1344 | |
| 1345 void Assembler::jmp(Register target) { | 1336 void Assembler::jmp(Register target) { |
| 1346 EnsureSpace ensure_space(this); | 1337 EnsureSpace ensure_space(this); |
| 1347 // Opcode FF/4 r64. | 1338 // Opcode FF/4 r64. |
| 1348 emit_optional_rex_32(target); | 1339 emit_optional_rex_32(target); |
| 1349 emit(0xFF); | 1340 emit(0xFF); |
| 1350 emit_modrm(0x4, target); | 1341 emit_modrm(0x4, target); |
| 1351 } | 1342 } |
| 1352 | 1343 |
| 1353 | 1344 |
| 1354 void Assembler::jmp(const Operand& src) { | 1345 void Assembler::jmp(const Operand& src) { |
| (...skipping 3403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4758 | 4749 |
| 4759 bool RelocInfo::IsInConstantPool() { | 4750 bool RelocInfo::IsInConstantPool() { |
| 4760 return false; | 4751 return false; |
| 4761 } | 4752 } |
| 4762 | 4753 |
| 4763 | 4754 |
| 4764 } // namespace internal | 4755 } // namespace internal |
| 4765 } // namespace v8 | 4756 } // namespace v8 |
| 4766 | 4757 |
| 4767 #endif // V8_TARGET_ARCH_X64 | 4758 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |