From 562250e14af4f74911b5f8510ca3c5774c9b1e1c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 8 Oct 2021 12:48:53 -0700 Subject: Emit heap types for call_indirect that match the table (#4221) See #4220 - this lets us handle the common case for now of simply having an identical heap type to the table when the signature is identical. With this PR, #4207's optimization of call_ref + table.get into call_indirect now leads to a binary that works in V8 in nominal mode. --- src/passes/Print.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index a5db73132..bea704b1d 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -435,7 +435,9 @@ struct PrintExpressionContents o << '('; printMinor(o, "type "); - TypeNamePrinter(o, wasm).print(HeapType(curr->sig)); + + TypeNamePrinter(o, wasm).print(curr->getHeapType(wasm)); + o << ')'; } void visitLocalGet(LocalGet* curr) { -- cgit v1.2.3