Remove drifted comment on Reference Type (#550)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2022-05-13 08:57:51 +09:00
committed by GitHub
parent bfac34e927
commit 854ac16b15

View File

@@ -49,7 +49,7 @@ const (
ElementModeActive ElementMode = iota
// ElementModePassive is the mode which doesn't require the runtime to initialize table, and only used with OpcodeTableInitName.
ElementModePassive
// ElementModeDeclarative is introduced in reference-types proposal, but currently not used.
// ElementModeDeclarative is introduced in reference-types proposal which can be used to declare function indexes used by OpcodeRefFunc.
ElementModeDeclarative
)
@@ -117,8 +117,6 @@ type ElementInstance struct {
}
// Reference is the runtime representation of RefType which is either RefTypeFuncref or RefTypeExternref.
//
// Currently the content is a (possively nil) pointer to the engine-specific struct which can be only used in indirect function calls.
type Reference = uintptr
// validatedActiveElementSegment is like ElementSegment of active mode except the inputs are expanded and validated based on defining module.