Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: test/mjsunit/wasm/params.js

Issue 1763433002: [wasm] Rework encoding of local declarations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/wasm/params.js
diff --git a/test/mjsunit/wasm/params.js b/test/mjsunit/wasm/params.js
index e9f2e956ebdbd5a5e34cb56627f599b3668f56b9..c6891f4816572fbd078b61ecf9e3870d15e71794 100644
--- a/test/mjsunit/wasm/params.js
+++ b/test/mjsunit/wasm/params.js
@@ -11,7 +11,7 @@ function runSelect2(module, which, a, b) {
}
function testSelect2(type) {
- var kBodySize = 2;
+ var kBodySize = 3;
var kNameOffset = kHeaderSize + 21 + kBodySize + 1;
for (var which = 0; which < 2; which++) {
@@ -30,6 +30,7 @@ function testSelect2(type) {
0, 0,
kNameOffset, 0, 0, 0, // name offset
kBodySize, 0, // body size
+ kDeclNoLocals,
kExprGetLocal, which, // --
kDeclEnd,
's','e','l','e','c','t',0 // name
@@ -87,7 +88,7 @@ function runSelect10(module, which, a, b) {
}
function testSelect10(type) {
- var kBodySize = 2;
+ var kBodySize = 3;
var kNameOffset = kHeaderSize + 29 + kBodySize + 1;
for (var which = 0; which < 10; which++) {
@@ -106,6 +107,7 @@ function testSelect10(type) {
0, 0,
kNameOffset, 0, 0, 0, // name offset
kBodySize, 0, // body size
+ kDeclNoLocals,
kExprGetLocal, which, // --
kDeclEnd,
's','e','l','e','c','t',0 // name

Powered by Google App Engine
This is Rietveld 408576698