From 7d673ce83206349159a68fe683bc7da02dcdaf98 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Tue, 29 Sep 2020 22:19:09 +0200 Subject: GC: Add stubs for the remaining instructions (#3174) NFC, except adding most of the boilerplate for the remaining GC instructions. Each implementation site is marked with a respective `TODO (gc): theInstruction` in between the typical boilerplate code. --- src/passes/DeadCodeElimination.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/passes/DeadCodeElimination.cpp') diff --git a/src/passes/DeadCodeElimination.cpp b/src/passes/DeadCodeElimination.cpp index 7562645e0..067bc81e1 100644 --- a/src/passes/DeadCodeElimination.cpp +++ b/src/passes/DeadCodeElimination.cpp @@ -379,6 +379,30 @@ struct DeadCodeElimination DELEGATE(I31New); case Expression::Id::I31GetId: DELEGATE(I31Get); + case Expression::Id::RefTestId: + DELEGATE(RefTest); + case Expression::Id::RefCastId: + DELEGATE(RefCast); + case Expression::Id::BrOnCastId: + DELEGATE(BrOnCast); + case Expression::Id::RttCanonId: + DELEGATE(RttCanon); + case Expression::Id::RttSubId: + DELEGATE(RttSub); + case Expression::Id::StructNewId: + DELEGATE(StructNew); + case Expression::Id::StructGetId: + DELEGATE(StructGet); + case Expression::Id::StructSetId: + DELEGATE(StructSet); + case Expression::Id::ArrayNewId: + DELEGATE(ArrayNew); + case Expression::Id::ArrayGetId: + DELEGATE(ArrayGet); + case Expression::Id::ArraySetId: + DELEGATE(ArraySet); + case Expression::Id::ArrayLenId: + DELEGATE(ArrayLen); case Expression::Id::InvalidId: WASM_UNREACHABLE("unimp"); case Expression::Id::NumExpressionIds: -- cgit v1.2.3