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 ac3f235 commit b7daa97
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 @@ -1461,6 +1461,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 @@ -2996,12 +2996,6 @@ temp
elif
defined
(
JS_CODEGEN_MIPS64
)
|
|
defined
(
JS_CODEGEN_RISCV64
)
return
Expand All @@ -3010,6 +3004,7 @@ executeLoad
access
check
instance
memoryBase
RegI32
(
ptr
Expand Down Expand Up @@ -7151,7 +7146,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
AtomicOp
op
Expand Down Expand Up @@ -8274,7 +8269,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
AtomicOp
op
Expand Down Expand Up @@ -9597,7 +9592,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI32
rv
Expand Down Expand Up @@ -11780,7 +11775,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI32
rexpect
Expand Down Expand Up @@ -13161,7 +13156,7 @@ const
MemoryAccessDesc
&
access
BaseIndex
Address
srcAddr
RegI64
rexpect
Expand Down

0 comments on commit b7daa97

Please sign in to comment.