Sha256: 7df3cf5d1ace2220e909f6c7045f0018b433b5cb13d4e85e2b2bd5948a066e0c

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

//! A basic `Variable` implementation.
//!
//! Frontends can use any indexing scheme they see fit and
//! generate the appropriate `Variable` instances.
//!
//! Note: The `Variable` is used by Cranelift to index into densely allocated
//! arrays containing information about your mutable variables
//! Thus, make sure that Variable's indexes are allocated contiguously and
//! starting at `0`.

use core::u32;
use cranelift_codegen::entity::entity_impl;

/// An opaque reference to a variable.
#[derive(Copy, Clone, PartialEq, Eq)]
pub struct Variable(u32);

entity_impl!(Variable, "var");

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/cranelift-frontend-0.116.0/src/variable.rs
wasmtime-28.0.0 ./ext/cargo-vendor/cranelift-frontend-0.115.0/src/variable.rs
wasmtime-27.0.0 ./ext/cargo-vendor/cranelift-frontend-0.114.0/src/variable.rs
wasmtime-26.0.0 ./ext/cargo-vendor/cranelift-frontend-0.113.0/src/variable.rs
wasmtime-25.0.2 ./ext/cargo-vendor/cranelift-frontend-0.112.2/src/variable.rs
wasmtime-25.0.1 ./ext/cargo-vendor/cranelift-frontend-0.112.1/src/variable.rs
wasmtime-25.0.0 ./ext/cargo-vendor/cranelift-frontend-0.112.0/src/variable.rs
wasmtime-24.0.0 ./ext/cargo-vendor/cranelift-frontend-0.111.0/src/variable.rs