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

Unified Diff: test/mjsunit/wasm/stack.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/stack.js
diff --git a/test/mjsunit/wasm/stack.js b/test/mjsunit/wasm/stack.js
index 573db3032b96142363eb87bbe67b3c2f7a84ff5c..ca1672816507daa620eeda08447246ecc9c6a8cf 100644
--- a/test/mjsunit/wasm/stack.js
+++ b/test/mjsunit/wasm/stack.js
@@ -7,7 +7,7 @@
load("test/mjsunit/wasm/wasm-constants.js");
function testStack(func, check) {
- var kBodySize = 2;
+ var kBodySize = 3;
var kNameFunOffset = kHeaderSize + 22 + kBodySize + 1;
var kNameMainOffset = kNameFunOffset + 4;
@@ -29,6 +29,7 @@ function testStack(func, check) {
kNameMainOffset, 0, 0, 0, // name offset
kBodySize, 0,
// main body
+ kDeclNoLocals,
kExprCallFunction, 0, // --
// names
kDeclEnd, // --
@@ -61,12 +62,12 @@ function check_STACK() {
var expected = "Error\n" +
// The line numbers below will change as this test gains / loses lines..
- " at STACK (stack.js:54:11)\n" + // --
+ " at STACK (stack.js:55:11)\n" + // --
" at <WASM> (<anonymous>)\n" + // --
" at <WASM> (<anonymous>)\n" + // --
" at <WASM> (<anonymous>)\n" + // --
- " at testStack (stack.js:43:10)\n" +
+ " at testStack (stack.js:44:10)\n" +
// TODO(jfb) Add WebAssembly stack here.
- " at stack.js:72:1";
+ " at stack.js:73:1";
testStack(STACK, check_STACK);

Powered by Google App Engine
This is Rietveld 408576698