summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js')
-rw-r--r--deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js b/deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js
index bd1c5c95a5..b2ffcf1475 100644
--- a/deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js
+++ b/deps/v8/test/mjsunit/wasm/compare-exchange64-stress.js
@@ -40,44 +40,44 @@ function makeWorkerCodeForOpcode(compareExchangeOpcode, size, functionName,
const kLocalNextValue = 7; // the value to write in the update
let body = [
// Turn sequence length to equivalent in bytes.
- kExprGetLocal, kArgSeqenceLength,
+ kExprLocalGet, kArgSeqenceLength,
kExprI32Const, size / 8,
kExprI32Mul,
- kExprSetLocal, kArgSeqenceLength,
+ kExprLocalSet, kArgSeqenceLength,
// Outer block so we have something to jump for return.
...[kExprBlock, kWasmStmt,
// Set counter to 0.
kExprI32Const, 0,
- kExprSetLocal, kLocalCurrentOffset,
+ kExprLocalSet, kLocalCurrentOffset,
// Outer loop until maxcount.
...[kExprLoop, kWasmStmt,
// Find the next value to wait for.
...[kExprLoop, kWasmStmt,
// Check end of sequence.
- kExprGetLocal, kLocalCurrentOffset,
- kExprGetLocal, kArgSeqenceLength,
+ kExprLocalGet, kLocalCurrentOffset,
+ kExprLocalGet, kArgSeqenceLength,
kExprI32Eq,
kExprBrIf, 2, // return
...[kExprBlock, kWasmStmt,
// Load next value.
- kExprGetLocal, kArgSequencePtr,
- kExprGetLocal, kLocalCurrentOffset,
+ kExprLocalGet, kArgSequencePtr,
+ kExprLocalGet, kLocalCurrentOffset,
kExprI32Add,
loadMemOpcode, 0, 0,
// Mask off bits.
- kExprGetLocal, kArgBitMask,
+ kExprLocalGet, kArgBitMask,
kExprI64UConvertI32,
kExprI64And,
// Compare with worker id.
- kExprGetLocal, kArgWorkerId,
+ kExprLocalGet, kArgWorkerId,
kExprI64UConvertI32,
kExprI64Eq,
kExprBrIf, 0,
// Not found, increment position.
- kExprGetLocal, kLocalCurrentOffset,
+ kExprLocalGet, kLocalCurrentOffset,
kExprI32Const, size / 8,
kExprI32Add,
- kExprSetLocal, kLocalCurrentOffset,
+ kExprLocalSet, kLocalCurrentOffset,
kExprBr, 1,
kExprEnd
],
@@ -85,41 +85,41 @@ function makeWorkerCodeForOpcode(compareExchangeOpcode, size, functionName,
kExprEnd
],
// Load expected value to local.
- kExprGetLocal, kArgSequencePtr,
- kExprGetLocal, kLocalCurrentOffset,
+ kExprLocalGet, kArgSequencePtr,
+ kExprLocalGet, kLocalCurrentOffset,
kExprI32Add,
loadMemOpcode, 0, 0,
- kExprSetLocal, kLocalExpectedValue,
+ kExprLocalSet, kLocalExpectedValue,
// Load value after expected one.
- kExprGetLocal, kArgSequencePtr,
- kExprGetLocal, kLocalCurrentOffset,
+ kExprLocalGet, kArgSequencePtr,
+ kExprLocalGet, kLocalCurrentOffset,
kExprI32Add,
kExprI32Const, size / 8,
kExprI32Add,
loadMemOpcode, 0, 0,
- kExprSetLocal, kLocalNextValue,
+ kExprLocalSet, kLocalNextValue,
// Hammer on memory until value found.
...[kExprLoop, kWasmStmt,
// Load address.
- kExprGetLocal, kArgMemoryCell,
+ kExprLocalGet, kArgMemoryCell,
// Load expected value.
- kExprGetLocal, kLocalExpectedValue,
+ kExprLocalGet, kLocalExpectedValue,
// Load updated value.
- kExprGetLocal, kLocalNextValue,
+ kExprLocalGet, kLocalNextValue,
// Try update.
kAtomicPrefix, compareExchangeOpcode, 0, 0,
// Load expected value.
- kExprGetLocal, kLocalExpectedValue,
+ kExprLocalGet, kLocalExpectedValue,
// Spin if not what expected.
kExprI64Ne,
kExprBrIf, 0,
kExprEnd
],
// Next iteration of loop.
- kExprGetLocal, kLocalCurrentOffset,
+ kExprLocalGet, kLocalCurrentOffset,
kExprI32Const, size / 8,
kExprI32Add,
- kExprSetLocal, kLocalCurrentOffset,
+ kExprLocalSet, kLocalCurrentOffset,
kExprBr, 0,
kExprEnd
], // outer loop