Sha256: 401059f8958896c29edfcaacc3f5cb32adcdf28710142c867a5cb37e8eae3f14

Contents?: true

Size: 805 Bytes

Versions: 28

Compression:

Stored size: 805 Bytes

Contents

//! This module contains constants that are shared between the codegen and the meta crate, so they
//! are kept in sync.

// Numbering scheme for value types:
//
// 0: Void
// 0x01-0x6f: Special types
// 0x70-0x7d: Lane types
// 0x7e-0x7f: Reference types
// 0x80-0xff: Vector types
// 0x100-0x17f: Dynamic Vector types
//
// Vector types are encoded with the lane type in the low 4 bits and log2(lanes)
// in the next highest 4 bits, giving a range of 2-256 lanes.

// Dynamic vector types are encoded similarily.

/// Start of the lane types.
pub const LANE_BASE: u16 = 0x70;

/// Base for reference types.
pub const REFERENCE_BASE: u16 = 0x7E;

/// Start of the 2-lane vector types.
pub const VECTOR_BASE: u16 = 0x80;

/// Start of the dynamic vector types.
pub const DYNAMIC_VECTOR_BASE: u16 = 0x100;

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
wasmtime-21.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.108.1/src/constants.rs
wasmtime-20.0.2 ./ext/cargo-vendor/cranelift-codegen-shared-0.107.2/src/constants.rs
wasmtime-20.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.107.2/src/constants.rs
wasmtime-18.0.3 ./ext/cargo-vendor/cranelift-codegen-shared-0.105.3/src/constants.rs
wasmtime-17.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.104.1/src/constants.rs
wasmtime-17.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.104.0/src/constants.rs
wasmtime-16.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.103.0/src/constants.rs
wasmtime-15.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/constants.rs
wasmtime-15.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/constants.rs
wasmtime-14.0.4 ./ext/cargo-vendor/cranelift-codegen-shared-0.101.4/src/constants.rs
wasmtime-14.0.3 ./ext/cargo-vendor/cranelift-codegen-shared-0.101.4/src/constants.rs
wasmtime-14.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.101.1/src/constants.rs
wasmtime-14.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.101.1/src/constants.rs
wasmtime-13.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.100.0/src/constants.rs
wasmtime-12.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.99.1/src/constants.rs
wasmtime-12.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.99.1/src/constants.rs
wasmtime-11.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.98.1/src/constants.rs
wasmtime-10.0.1 ./ext/cargo-vendor/cranelift-codegen-shared-0.97.1/src/constants.rs
wasmtime-10.0.0 ./ext/cargo-vendor/cranelift-codegen-shared-0.97.1/src/constants.rs
wasmtime-9.0.4 ./ext/cargo-vendor/cranelift-codegen-shared-0.96.4/src/constants.rs