Commit de63a255 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Remove obsolete {JumpTableAssembler::EmitJumpTrampoline}.

R=clemensh@chromium.org

Change-Id: Ib8725fb5d7cd6909c522e3dca015e192a3dc6b01
Reviewed-on: https://chromium-review.googlesource.com/1110124Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53941}
parent bea2dc3a
......@@ -11,23 +11,6 @@ namespace v8 {
namespace internal {
namespace wasm {
void JumpTableAssembler::EmitJumpTrampoline(Address target) {
#if V8_TARGET_ARCH_X64
movq(kScratchRegister, static_cast<uint64_t>(target));
jmp(kScratchRegister);
#elif V8_TARGET_ARCH_ARM64
UseScratchRegisterScope temps(this);
Register scratch = temps.AcquireX();
Mov(scratch, static_cast<uint64_t>(target));
Br(scratch);
#elif V8_TARGET_ARCH_S390X
mov(ip, Operand(bit_cast<intptr_t, Address>(target)));
b(ip);
#else
UNIMPLEMENTED();
#endif
}
// The implementation is compact enough to implement it inline here. If it gets
// much bigger, we might want to split it in a separate file per architecture.
#if V8_TARGET_ARCH_X64
......
......@@ -27,9 +27,6 @@ class JumpTableAssembler : public TurboAssembler {
reinterpret_cast<void*>(slot_addr), size,
CodeObjectRequired::kNo) {}
// Emit a trampoline to a possibly far away code target.
void EmitJumpTrampoline(Address target);
#if V8_TARGET_ARCH_X64
static constexpr int kJumpTableSlotSize = 18;
#elif V8_TARGET_ARCH_IA32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment