Commit 560d366d authored by Z Nguyen-Huu's avatar Z Nguyen-Huu Committed by Commit Bot

[wasm] Adopt WAT compatible naming

We want to be consistent with wasdk/wasmparser.

The names used in V8 should follow the WAT convention and always start
with a dollar, both for names from the "names" section as well as
generated names.

Bug: v8:10242
Change-Id: If4dbd4c38208c9dd9377dd2f79120635a531d881
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2070637
Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarKim-Anh Tran <kimanh@chromium.org>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66434}
parent fc55d733
...@@ -82,7 +82,9 @@ MaybeHandle<String> GetLocalNameString(Isolate* isolate, ...@@ -82,7 +82,9 @@ MaybeHandle<String> GetLocalNameString(Isolate* isolate,
DCHECK(wire_bytes.BoundsCheck(name_ref)); DCHECK(wire_bytes.BoundsCheck(name_ref));
Vector<const char> name = wire_bytes.GetNameOrNull(name_ref); Vector<const char> name = wire_bytes.GetNameOrNull(name_ref);
if (name.begin() == nullptr) return {}; if (name.begin() == nullptr) return {};
return isolate->factory()->NewStringFromUtf8(name); std::string full_name("$");
full_name.append(name.begin(), name.end());
return isolate->factory()->NewStringFromUtf8(VectorOf(full_name));
} }
class InterpreterHandle { class InterpreterHandle {
...@@ -383,9 +385,8 @@ class InterpreterHandle { ...@@ -383,9 +385,8 @@ class InterpreterHandle {
Handle<JSObject> local_scope_object = Handle<JSObject> local_scope_object =
isolate_->factory()->NewJSObjectWithNullProto(); isolate_->factory()->NewJSObjectWithNullProto();
// Fill parameters and locals. // Fill parameters and locals.
int num_params = frame->GetParameterCount();
int num_locals = frame->GetLocalCount(); int num_locals = frame->GetLocalCount();
DCHECK_LE(num_params, num_locals); DCHECK_LE(frame->GetParameterCount(), num_locals);
if (num_locals > 0) { if (num_locals > 0) {
Handle<JSObject> locals_obj = Handle<JSObject> locals_obj =
isolate_->factory()->NewJSObjectWithNullProto(); isolate_->factory()->NewJSObjectWithNullProto();
...@@ -400,10 +401,7 @@ class InterpreterHandle { ...@@ -400,10 +401,7 @@ class InterpreterHandle {
if (!GetLocalNameString(isolate, native_module, if (!GetLocalNameString(isolate, native_module,
frame->function()->func_index, i) frame->function()->func_index, i)
.ToHandle(&name)) { .ToHandle(&name)) {
// Parameters should come before locals in alphabetical ordering, so name = PrintFToOneByteString<true>(isolate_, "$var%d", i);
// we name them "args" here.
const char* label = i < num_params ? "arg#%d" : "local#%d";
name = PrintFToOneByteString<true>(isolate_, label, i);
} }
WasmValue value = frame->GetLocalValue(i); WasmValue value = frame->GetLocalValue(i);
Handle<Object> value_obj = WasmValueToValueObject(isolate_, value); Handle<Object> value_obj = WasmValueToValueObject(isolate_, value);
...@@ -523,7 +521,7 @@ Handle<JSObject> GetGlobalScopeObject(Handle<WasmInstanceObject> instance) { ...@@ -523,7 +521,7 @@ Handle<JSObject> GetGlobalScopeObject(Handle<WasmInstanceObject> instance) {
globals_obj, NONE); globals_obj, NONE);
for (size_t i = 0; i < globals.size(); ++i) { for (size_t i = 0; i < globals.size(); ++i) {
const char* label = "global#%d"; const char* label = "$global%d";
Handle<String> name = PrintFToOneByteString<true>(isolate, label, i); Handle<String> name = PrintFToOneByteString<true>(isolate, label, i);
WasmValue value = WasmValue value =
WasmInstanceObject::GetGlobalValue(instance, globals[i]); WasmInstanceObject::GetGlobalValue(instance, globals[i]);
...@@ -559,9 +557,8 @@ class DebugInfoImpl { ...@@ -559,9 +557,8 @@ class DebugInfoImpl {
DCHECK_NOT_NULL(debug_side_table_entry); DCHECK_NOT_NULL(debug_side_table_entry);
// Fill parameters and locals. // Fill parameters and locals.
int num_params = static_cast<int>(function->sig->parameter_count());
int num_locals = static_cast<int>(debug_side_table->num_locals()); int num_locals = static_cast<int>(debug_side_table->num_locals());
DCHECK_LE(num_params, num_locals); DCHECK_LE(static_cast<int>(function->sig->parameter_count()), num_locals);
if (num_locals > 0) { if (num_locals > 0) {
Handle<JSObject> locals_obj = Handle<JSObject> locals_obj =
isolate->factory()->NewJSObjectWithNullProto(); isolate->factory()->NewJSObjectWithNullProto();
...@@ -574,10 +571,7 @@ class DebugInfoImpl { ...@@ -574,10 +571,7 @@ class DebugInfoImpl {
if (!GetLocalNameString(isolate, native_module_, function->func_index, if (!GetLocalNameString(isolate, native_module_, function->func_index,
i) i)
.ToHandle(&name)) { .ToHandle(&name)) {
// Parameters should come before locals in alphabetical ordering, so name = PrintFToOneByteString<true>(isolate, "$var%d", i);
// we name them "args" here.
const char* label = i < num_params ? "arg#%d" : "local#%d";
name = PrintFToOneByteString<true>(isolate, label, i);
} }
WasmValue value = GetValue(debug_side_table_entry, i, fp); WasmValue value = GetValue(debug_side_table_entry, i, fp);
Handle<Object> value_obj = WasmValueToValueObject(isolate, value); Handle<Object> value_obj = WasmValueToValueObject(isolate, value);
......
...@@ -3,5 +3,5 @@ Waiting for wasm script to be parsed. ...@@ -3,5 +3,5 @@ Waiting for wasm script to be parsed.
Setting breakpoint in wasm. Setting breakpoint in wasm.
Running main. Running main.
Paused in debugger. Paused in debugger.
globals: {"global#0": hello, world} globals: {"$global0": hello, world}
Finished. Finished.
...@@ -14,22 +14,22 @@ Script wasm://wasm/c4eb034a byte offset 85: Wasm opcode 0x20 ...@@ -14,22 +14,22 @@ Script wasm://wasm/c4eb034a byte offset 85: Wasm opcode 0x20
Scope: Scope:
at C (interpreted) (0:85): at C (interpreted) (0:85):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "i32_arg": 42 (number), "i32_local": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number)
stack: stack:
at B (liftoff) (0:76): at B (liftoff) (0:76):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "0": 0 (number), "i32_arg": 42 (number), "i32_local": 0 (number), "f32_local": 7.199999809265137 (number), "local#5": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number), "$f32_local": 7.199999809265137 (number), "$0": 0 (number), "$var5": 0 (number)
stack: "0": 42 (number), "1": 3 (number) stack: "0": 42 (number), "1": 3 (number)
at A (liftoff) (0:54): at A (liftoff) (0:54):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "arg#0": 42 (number) locals: "$var0": 42 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
-- skipped globals -- skipped globals
...@@ -39,22 +39,22 @@ Script wasm://wasm/c4eb034a byte offset 87: Wasm opcode 0x24 ...@@ -39,22 +39,22 @@ Script wasm://wasm/c4eb034a byte offset 87: Wasm opcode 0x24
Scope: Scope:
at C (interpreted) (0:87): at C (interpreted) (0:87):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "i32_arg": 42 (number), "i32_local": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number)
stack: "0": 42 (number) stack: "0": 42 (number)
at B (liftoff) (0:76): at B (liftoff) (0:76):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "0": 0 (number), "i32_arg": 42 (number), "i32_local": 0 (number), "f32_local": 7.199999809265137 (number), "local#5": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number), "$f32_local": 7.199999809265137 (number), "$0": 0 (number), "$var5": 0 (number)
stack: "0": 42 (number), "1": 3 (number) stack: "0": 42 (number), "1": 3 (number)
at A (liftoff) (0:54): at A (liftoff) (0:54):
- scope (global): - scope (global):
globals: "global#0": 0 (number) globals: "$global0": 0 (number)
- scope (local): - scope (local):
locals: "arg#0": 42 (number) locals: "$var0": 42 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
-- skipped globals -- skipped globals
...@@ -64,22 +64,22 @@ Script wasm://wasm/c4eb034a byte offset 89: Wasm opcode 0x41 ...@@ -64,22 +64,22 @@ Script wasm://wasm/c4eb034a byte offset 89: Wasm opcode 0x41
Scope: Scope:
at C (interpreted) (0:89): at C (interpreted) (0:89):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "i32_arg": 42 (number), "i32_local": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number)
stack: stack:
at B (liftoff) (0:76): at B (liftoff) (0:76):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "0": 0 (number), "i32_arg": 42 (number), "i32_local": 0 (number), "f32_local": 7.199999809265137 (number), "local#5": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number), "$f32_local": 7.199999809265137 (number), "$0": 0 (number), "$var5": 0 (number)
stack: "0": 42 (number), "1": 3 (number) stack: "0": 42 (number), "1": 3 (number)
at A (liftoff) (0:54): at A (liftoff) (0:54):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "arg#0": 42 (number) locals: "$var0": 42 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
-- skipped globals -- skipped globals
...@@ -89,22 +89,22 @@ Script wasm://wasm/c4eb034a byte offset 91: Wasm opcode 0x21 ...@@ -89,22 +89,22 @@ Script wasm://wasm/c4eb034a byte offset 91: Wasm opcode 0x21
Scope: Scope:
at C (interpreted) (0:91): at C (interpreted) (0:91):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "i32_arg": 42 (number), "i32_local": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number)
stack: "0": 47 (number) stack: "0": 47 (number)
at B (liftoff) (0:76): at B (liftoff) (0:76):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "0": 0 (number), "i32_arg": 42 (number), "i32_local": 0 (number), "f32_local": 7.199999809265137 (number), "local#5": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number), "$f32_local": 7.199999809265137 (number), "$0": 0 (number), "$var5": 0 (number)
stack: "0": 42 (number), "1": 3 (number) stack: "0": 42 (number), "1": 3 (number)
at A (liftoff) (0:54): at A (liftoff) (0:54):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "arg#0": 42 (number) locals: "$var0": 42 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
-- skipped globals -- skipped globals
...@@ -114,22 +114,22 @@ Script wasm://wasm/c4eb034a byte offset 93: Wasm opcode 0xb ...@@ -114,22 +114,22 @@ Script wasm://wasm/c4eb034a byte offset 93: Wasm opcode 0xb
Scope: Scope:
at C (interpreted) (0:93): at C (interpreted) (0:93):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "i32_arg": 42 (number), "i32_local": 47 (number) locals: "$i32_arg": 42 (number), "$i32_local": 47 (number)
stack: stack:
at B (liftoff) (0:76): at B (liftoff) (0:76):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "0": 0 (number), "i32_arg": 42 (number), "i32_local": 0 (number), "f32_local": 7.199999809265137 (number), "local#5": 0 (number) locals: "$i32_arg": 42 (number), "$i32_local": 0 (number), "$f32_local": 7.199999809265137 (number), "$0": 0 (number), "$var5": 0 (number)
stack: "0": 42 (number), "1": 3 (number) stack: "0": 42 (number), "1": 3 (number)
at A (liftoff) (0:54): at A (liftoff) (0:54):
- scope (global): - scope (global):
globals: "global#0": 42 (number) globals: "$global0": 42 (number)
- scope (local): - scope (local):
locals: "arg#0": 42 (number) locals: "$var0": 42 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
-- skipped globals -- skipped globals
......
...@@ -13,7 +13,7 @@ at wasm_A (0:38): ...@@ -13,7 +13,7 @@ at wasm_A (0:38):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -34,7 +34,7 @@ at wasm_A (0:39): ...@@ -34,7 +34,7 @@ at wasm_A (0:39):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -44,7 +44,7 @@ Scope: ...@@ -44,7 +44,7 @@ Scope:
at wasm_B (0:45): at wasm_B (0:45):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -54,7 +54,7 @@ Scope: ...@@ -54,7 +54,7 @@ Scope:
at wasm_B (0:47): at wasm_B (0:47):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -64,7 +64,7 @@ Scope: ...@@ -64,7 +64,7 @@ Scope:
at wasm_B (0:49): at wasm_B (0:49):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -74,7 +74,7 @@ Scope: ...@@ -74,7 +74,7 @@ Scope:
at wasm_B (0:51): at wasm_B (0:51):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -84,7 +84,7 @@ Scope: ...@@ -84,7 +84,7 @@ Scope:
at wasm_B (0:53): at wasm_B (0:53):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: "0": -11 (number), "1": 1 (number) stack: "0": -11 (number), "1": 1 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -94,7 +94,7 @@ Scope: ...@@ -94,7 +94,7 @@ Scope:
at wasm_B (0:54): at wasm_B (0:54):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 3 (number) locals: "$var0": 3 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -108,7 +108,7 @@ at wasm_A (0:38): ...@@ -108,7 +108,7 @@ at wasm_A (0:38):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -122,7 +122,7 @@ at wasm_A (0:39): ...@@ -122,7 +122,7 @@ at wasm_A (0:39):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -132,7 +132,7 @@ Scope: ...@@ -132,7 +132,7 @@ Scope:
at wasm_B (0:45): at wasm_B (0:45):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -142,7 +142,7 @@ Scope: ...@@ -142,7 +142,7 @@ Scope:
at wasm_B (0:47): at wasm_B (0:47):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -152,7 +152,7 @@ Scope: ...@@ -152,7 +152,7 @@ Scope:
at wasm_B (0:49): at wasm_B (0:49):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -162,7 +162,7 @@ Scope: ...@@ -162,7 +162,7 @@ Scope:
at wasm_B (0:51): at wasm_B (0:51):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -172,7 +172,7 @@ Scope: ...@@ -172,7 +172,7 @@ Scope:
at wasm_B (0:53): at wasm_B (0:53):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: "0": -11 (number), "1": 1 (number) stack: "0": -11 (number), "1": 1 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -182,7 +182,7 @@ Scope: ...@@ -182,7 +182,7 @@ Scope:
at wasm_B (0:54): at wasm_B (0:54):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 2 (number) locals: "$var0": 2 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -196,7 +196,7 @@ at wasm_A (0:38): ...@@ -196,7 +196,7 @@ at wasm_A (0:38):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -210,7 +210,7 @@ at wasm_A (0:39): ...@@ -210,7 +210,7 @@ at wasm_A (0:39):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -220,7 +220,7 @@ Scope: ...@@ -220,7 +220,7 @@ Scope:
at wasm_B (0:45): at wasm_B (0:45):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -230,7 +230,7 @@ Scope: ...@@ -230,7 +230,7 @@ Scope:
at wasm_B (0:47): at wasm_B (0:47):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -240,7 +240,7 @@ Scope: ...@@ -240,7 +240,7 @@ Scope:
at wasm_B (0:49): at wasm_B (0:49):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -250,7 +250,7 @@ Scope: ...@@ -250,7 +250,7 @@ Scope:
at wasm_B (0:51): at wasm_B (0:51):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -260,7 +260,7 @@ Scope: ...@@ -260,7 +260,7 @@ Scope:
at wasm_B (0:53): at wasm_B (0:53):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: "0": -11 (number), "1": 1 (number) stack: "0": -11 (number), "1": 1 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -270,7 +270,7 @@ Scope: ...@@ -270,7 +270,7 @@ Scope:
at wasm_B (0:54): at wasm_B (0:54):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 1 (number) locals: "$var0": 1 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -284,7 +284,7 @@ at wasm_A (0:38): ...@@ -284,7 +284,7 @@ at wasm_A (0:38):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 0 (number) locals: "$var0": 0 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -298,7 +298,7 @@ at wasm_A (0:39): ...@@ -298,7 +298,7 @@ at wasm_A (0:39):
at wasm_B (0:56): at wasm_B (0:56):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 0 (number) locals: "$var0": 0 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -308,7 +308,7 @@ Scope: ...@@ -308,7 +308,7 @@ Scope:
at wasm_B (0:45): at wasm_B (0:45):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 0 (number) locals: "$var0": 0 (number)
stack: stack:
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
...@@ -318,7 +318,7 @@ Scope: ...@@ -318,7 +318,7 @@ Scope:
at wasm_B (0:47): at wasm_B (0:47):
- scope (global): - scope (global):
- scope (local): - scope (local):
locals: "arg#0": 0 (number) locals: "$var0": 0 (number)
stack: "0": -11 (number) stack: "0": -11 (number)
at (anonymous) (0:17): at (anonymous) (0:17):
-- skipped -- skipped
......
...@@ -12,7 +12,7 @@ at wasm_B (0:60): ...@@ -12,7 +12,7 @@ at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {"0":1024} stack: {"0":1024}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -23,13 +23,13 @@ at wasm_A (0:39): ...@@ -23,13 +23,13 @@ at wasm_A (0:39):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -40,13 +40,13 @@ at wasm_A (0:40): ...@@ -40,13 +40,13 @@ at wasm_A (0:40):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -57,7 +57,7 @@ at wasm_B (0:62): ...@@ -57,7 +57,7 @@ at wasm_B (0:62):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -68,7 +68,7 @@ at wasm_B (0:60): ...@@ -68,7 +68,7 @@ at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {"0":1024} stack: {"0":1024}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -79,7 +79,7 @@ at wasm_B (0:62): ...@@ -79,7 +79,7 @@ at wasm_B (0:62):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -90,7 +90,7 @@ at wasm_B (0:44): ...@@ -90,7 +90,7 @@ at wasm_B (0:44):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -101,7 +101,7 @@ at wasm_B (0:60): ...@@ -101,7 +101,7 @@ at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1024} stack: {"0":1024}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -112,13 +112,13 @@ at wasm_A (0:39): ...@@ -112,13 +112,13 @@ at wasm_A (0:39):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -129,7 +129,7 @@ at wasm_B (0:62): ...@@ -129,7 +129,7 @@ at wasm_B (0:62):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -140,7 +140,7 @@ at wasm_B (0:44): ...@@ -140,7 +140,7 @@ at wasm_B (0:44):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -151,7 +151,7 @@ at wasm_B (0:46): ...@@ -151,7 +151,7 @@ at wasm_B (0:46):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -162,7 +162,7 @@ at wasm_B (0:48): ...@@ -162,7 +162,7 @@ at wasm_B (0:48):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1} stack: {"0":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -173,7 +173,7 @@ at wasm_B (0:50): ...@@ -173,7 +173,7 @@ at wasm_B (0:50):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -184,7 +184,7 @@ at wasm_B (0:52): ...@@ -184,7 +184,7 @@ at wasm_B (0:52):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1} stack: {"0":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -195,7 +195,7 @@ at wasm_B (0:54): ...@@ -195,7 +195,7 @@ at wasm_B (0:54):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1,"1":1} stack: {"0":1,"1":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -206,7 +206,7 @@ at wasm_B (0:55): ...@@ -206,7 +206,7 @@ at wasm_B (0:55):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":0} stack: {"0":0}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -217,7 +217,7 @@ at wasm_B (0:57): ...@@ -217,7 +217,7 @@ at wasm_B (0:57):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -228,7 +228,7 @@ at wasm_B (0:60): ...@@ -228,7 +228,7 @@ at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {"0":1024} stack: {"0":1024}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -239,13 +239,13 @@ at wasm_A (0:39): ...@@ -239,13 +239,13 @@ at wasm_A (0:39):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -256,13 +256,13 @@ at wasm_A (0:40): ...@@ -256,13 +256,13 @@ at wasm_A (0:40):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -273,13 +273,13 @@ at wasm_A (0:41): ...@@ -273,13 +273,13 @@ at wasm_A (0:41):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1024} locals: {"$var0":1024}
stack: {} stack: {}
at wasm_B (0:60): at wasm_B (0:60):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -290,7 +290,7 @@ at wasm_B (0:62): ...@@ -290,7 +290,7 @@ at wasm_B (0:62):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
......
...@@ -15,7 +15,7 @@ at wasm_B (0:54): ...@@ -15,7 +15,7 @@ at wasm_B (0:54):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":4} locals: {"$var0":4}
stack: {"0":3} stack: {"0":3}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -26,7 +26,7 @@ at wasm_B (0:56): ...@@ -26,7 +26,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -42,7 +42,7 @@ at wasm_B (0:56): ...@@ -42,7 +42,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -58,7 +58,7 @@ at wasm_B (0:56): ...@@ -58,7 +58,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -69,7 +69,7 @@ at wasm_B (0:58): ...@@ -69,7 +69,7 @@ at wasm_B (0:58):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -80,7 +80,7 @@ at wasm_B (0:54): ...@@ -80,7 +80,7 @@ at wasm_B (0:54):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":3} locals: {"$var0":3}
stack: {"0":2} stack: {"0":2}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -91,7 +91,7 @@ at wasm_B (0:56): ...@@ -91,7 +91,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -102,7 +102,7 @@ at wasm_B (0:58): ...@@ -102,7 +102,7 @@ at wasm_B (0:58):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -113,7 +113,7 @@ at wasm_B (0:54): ...@@ -113,7 +113,7 @@ at wasm_B (0:54):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":2} locals: {"$var0":2}
stack: {"0":1} stack: {"0":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -124,7 +124,7 @@ at wasm_B (0:56): ...@@ -124,7 +124,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -140,7 +140,7 @@ at wasm_B (0:56): ...@@ -140,7 +140,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -151,7 +151,7 @@ at wasm_B (0:58): ...@@ -151,7 +151,7 @@ at wasm_B (0:58):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -162,7 +162,7 @@ at wasm_B (0:43): ...@@ -162,7 +162,7 @@ at wasm_B (0:43):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -173,7 +173,7 @@ at wasm_B (0:45): ...@@ -173,7 +173,7 @@ at wasm_B (0:45):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -184,7 +184,7 @@ at wasm_B (0:47): ...@@ -184,7 +184,7 @@ at wasm_B (0:47):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1} stack: {"0":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -195,7 +195,7 @@ at wasm_B (0:49): ...@@ -195,7 +195,7 @@ at wasm_B (0:49):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -206,7 +206,7 @@ at wasm_B (0:51): ...@@ -206,7 +206,7 @@ at wasm_B (0:51):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1} stack: {"0":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -217,7 +217,7 @@ at wasm_B (0:53): ...@@ -217,7 +217,7 @@ at wasm_B (0:53):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":1,"1":1} stack: {"0":1,"1":1}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -228,7 +228,7 @@ at wasm_B (0:54): ...@@ -228,7 +228,7 @@ at wasm_B (0:54):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":1} locals: {"$var0":1}
stack: {"0":0} stack: {"0":0}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -239,7 +239,7 @@ at wasm_B (0:56): ...@@ -239,7 +239,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -255,7 +255,7 @@ at wasm_B (0:56): ...@@ -255,7 +255,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -271,7 +271,7 @@ at wasm_B (0:56): ...@@ -271,7 +271,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -287,7 +287,7 @@ at wasm_B (0:56): ...@@ -287,7 +287,7 @@ at wasm_B (0:56):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
...@@ -298,7 +298,7 @@ at wasm_B (0:58): ...@@ -298,7 +298,7 @@ at wasm_B (0:58):
- scope (global): - scope (global):
-- skipped -- skipped
- scope (local): - scope (local):
locals: {"arg#0":0} locals: {"$var0":0}
stack: {} stack: {}
at (anonymous) (0:17): at (anonymous) (0:17):
- scope (global): - scope (global):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment