From 57bef0d2f9a38a2add940e07fc422fd532574013 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 11 May 2022 11:23:55 -0700 Subject: Add ref.cast_nop_static (#4656) This unsafe experimental instruction is semantically equivalent to ref.cast_static, but V8 will unsafely turn it into a nop. This is meant to help us measure cast overhead more precisely than we can by globally turning all casts into nops. --- src/wasm-binary.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 12deeacab..58dcd2224 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1112,6 +1112,7 @@ enum ASTNodes { RefCastStatic = 0x45, BrOnCastStatic = 0x46, BrOnCastStaticFail = 0x47, + RefCastNopStatic = 0x48, RefIsFunc = 0x50, RefIsData = 0x51, RefIsI31 = 0x52, -- cgit v1.2.3