Skip to content

Commit

Permalink
Bug 1850864 - [riscv]wasm: Generalize load/store instructions for mul…
Browse files Browse the repository at this point in the history
…tiple memories. r=jseward

Depends on D187164

Differential Revision: https://phabricator.services.mozilla.com/D187165

UltraBlame original commit: 98f0129136a137644c8fa17d85f655c7d98abeb1
  • Loading branch information
marco-c committed Oct 16, 2023
1 parent 40e3c58 commit db22443
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
16 changes: 16 additions & 0 deletions js/src/jit/riscv64/LIR-riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,22 @@ getInt64Operand
;
}
const
LAllocation
*
memoryBase
(
)
{
return
getOperand
(
1
+
INT64_PIECES
)
;
}
const
MWasmAtomicExchangeHeap
*
mir
Expand Down
17 changes: 6 additions & 11 deletions js/src/wasm/WasmBCMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5000,12 +5000,6 @@ temp
elif
defined
(
JS_CODEGEN_MIPS64
)
|
|
defined
(
JS_CODEGEN_RISCV64
)
/
Expand Down Expand Up @@ -5063,6 +5057,7 @@ executeLoad
access
check
instance
memoryBase
RegI32
(
ptr
Expand Down Expand Up @@ -9824,7 +9819,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
AtomicOp
op
Expand Down Expand Up @@ -11094,7 +11089,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
AtomicOp
op
Expand Down Expand Up @@ -12547,7 +12542,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI32
rv
Expand Down Expand Up @@ -15080,7 +15075,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI32
rexpect
Expand Down Expand Up @@ -16783,7 +16778,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI64
rexpect
Expand Down

0 comments on commit db22443

Please sign in to comment.