diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-11-08 15:39:11 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-11-08 15:46:25 +0100 |
commit | 6ca81ad72a3c6fdf16c683335be748f22aaa9a0d (patch) | |
tree | 33c8ee75f729aed76c2c0b89c63f9bf1b4dd66aa /deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js | |
parent | 1eee0b8bf8bba39b600fb16a9223e545e3bac2bc (diff) | |
download | node-new-6ca81ad72a3c6fdf16c683335be748f22aaa9a0d.tar.gz |
deps: update V8 to 7.9.317.20
PR-URL: https://github.com/nodejs/node/pull/30020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js b/deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js index 96d3a0bac5..e43eaf7258 100644 --- a/deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js +++ b/deps/v8/test/mjsunit/wasm/test-wasm-module-builder.js @@ -44,7 +44,7 @@ function instantiate(buffer, ffi) { let builder = new WasmModuleBuilder(); builder.addFunction(undefined, kSig_i_i) .addLocals({i32_count: 1}) - .addBody([kExprGetLocal, 0, kExprSetLocal, 1, kExprGetLocal, 1]) + .addBody([kExprLocalGet, 0, kExprLocalSet, 1, kExprLocalGet, 1]) .exportAs('main'); var buffer = builder.toBuffer(debug); @@ -67,7 +67,7 @@ function instantiate(buffer, ffi) { let builder = new WasmModuleBuilder(); builder.addFunction(undefined, makeSig_r_x(p.type, p.type)) .addLocals(p.locals) - .addBody([kExprGetLocal, 0, kExprSetLocal, 1, kExprGetLocal, 1]) + .addBody([kExprLocalGet, 0, kExprLocalSet, 1, kExprLocalGet, 1]) .exportAs('main'); var buffer = builder.toBuffer(debug); @@ -81,10 +81,10 @@ function instantiate(buffer, ffi) { print(arguments.callee.name); let builder = new WasmModuleBuilder(); builder.addFunction('add', kSig_i_ii).addBody([ - kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Add + kExprLocalGet, 0, kExprLocalGet, 1, kExprI32Add ]); builder.addFunction('main', kSig_i_ii) - .addBody([kExprGetLocal, 0, kExprGetLocal, 1, kExprCallFunction, 0]) + .addBody([kExprLocalGet, 0, kExprLocalGet, 1, kExprCallFunction, 0]) .exportAs('main'); var instance = builder.instantiate(); @@ -96,11 +96,11 @@ function instantiate(buffer, ffi) { print(arguments.callee.name); let builder = new WasmModuleBuilder(); builder.addFunction('add', kSig_i_ii).addBody([ - kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Add + kExprLocalGet, 0, kExprLocalGet, 1, kExprI32Add ]); builder.addFunction('main', kSig_i_iii) .addBody([ - kExprGetLocal, 1, kExprGetLocal, 2, kExprGetLocal, 0, kExprCallIndirect, + kExprLocalGet, 1, kExprLocalGet, 2, kExprLocalGet, 0, kExprCallIndirect, 0, kTableZero ]) .exportAs('main'); @@ -117,7 +117,7 @@ function instantiate(buffer, ffi) { let builder = new WasmModuleBuilder(); builder.addMemory(1, 1, false); builder.addFunction('load', kSig_i_i) - .addBody([kExprGetLocal, 0, kExprI32LoadMem, 0, 0]) + .addBody([kExprLocalGet, 0, kExprI32LoadMem, 0, 0]) .exportAs('load'); builder.addDataSegment(0, [9, 9, 9, 9]); |