Skip to content

Commit 4d8e6ee

Browse files
committed
Fast cross-module relative jumps on Intel
1 parent fb1cceb commit 4d8e6ee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tinyinst.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,14 @@ void TinyInst::InvalidInstruction(ModuleInfo *module) {
496496
}
497497

498498
void TinyInst::OutsideJump(ModuleInfo* module, size_t address) {
499+
#ifdef ARM64
499500
size_t breakpoint_address = (size_t)module->instrumented_code_remote +
500501
module->instrumented_code_allocated;
501502
assembler_->Breakpoint(module);
502503
module->outside_jumps[breakpoint_address] = address;
504+
#else
505+
assembler_->JmpAddress(module, address);
506+
#endif
503507
}
504508

505509
void TinyInst::InstrumentIndirect(ModuleInfo *module,

0 commit comments

Comments
 (0)