Skip to content

Commit

Permalink
[mips][wasm][liftoff][eh] Implement catch with immediate
Browse files Browse the repository at this point in the history
Port: 3e689a7

Bug: v8:11453
Change-Id: I5671fe0505f0dfd924aa9b5242b3277ed03f2337
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2763632
Auto-Submit: Liu yu <[email protected]>
Reviewed-by: Zhao Jiazhong <[email protected]>
Commit-Queue: Zhao Jiazhong <[email protected]>
Cr-Commit-Position: refs/heads/master@{#73419}
  • Loading branch information
LiuYu396 authored and Commit Bot committed Mar 16, 2021
1 parent 9328852 commit 6906be2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wasm/baseline/mips/liftoff-assembler-mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
static_cast<uint32_t>(offset_imm), LoadType::kI32Load, pinned);
}

void LiftoffAssembler::LoadFullPointer(Register dst, Register src_addr,
int32_t offset_imm) {
MemOperand src_op = MemOperand(src_addr, offset_imm);
lw(dst, src_op);
}

void LiftoffAssembler::StoreTaggedPointer(Register dst_addr,
Register offset_reg,
int32_t offset_imm,
Expand Down
6 changes: 6 additions & 0 deletions src/wasm/baseline/mips64/liftoff-assembler-mips64.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,12 @@ void LiftoffAssembler::LoadTaggedPointer(Register dst, Register src_addr,
Ld(dst, src_op);
}

void LiftoffAssembler::LoadFullPointer(Register dst, Register src_addr,
int32_t offset_imm) {
MemOperand src_op = liftoff::GetMemOp(this, src_addr, no_reg, offset_imm);
Ld(dst, src_op);
}

void LiftoffAssembler::StoreTaggedPointer(Register dst_addr,
Register offset_reg,
int32_t offset_imm,
Expand Down

0 comments on commit 6906be2

Please sign in to comment.