Skip to main content

nanvm_harness/gen.fixtures/
operators.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{f64_any, strict_eq, strict_ne, string_any, string_key};
4use nanvm_lib::vm::{Any, Constructor, IVm, ToAny, ToArray, ToObject};
5
6#[rustfmt::skip]
7#[allow(clippy::if_same_then_else)]
8pub fn module<A: IVm>(_runtime: Any<A>) -> Result<Any<A>, Any<A>> {
9    Ok([(string_key("default"), {
10        let _b0: Any<A> = (f64_any(0x4000000000000000) * f64_any(0x4008000000000000))?;
11        [(_b0.clone() + f64_any(0x3ff0000000000000))?, (_b0.clone() - f64_any(0x3ff0000000000000))?, (_b0.clone() * f64_any(0x4000000000000000))?, (_b0.clone() / f64_any(0x4010000000000000))?, (_b0.clone() % f64_any(0x4010000000000000))?, (Any::pow(_b0.clone(), f64_any(0x4000000000000000)))?, (<Any<A> as core::ops::Neg>::neg(_b0.clone()))?, (Any::bitwise_not(_b0.clone()))?, (<Any<A> as core::ops::Not>::not(_b0.clone()))?, (Any::typeof_(_b0.clone()))?, (Any::instanceof_([_b0.clone()].to_array().to_any(), Constructor::Array))?, (strict_eq(_b0.clone(), f64_any(0x4018000000000000)))?, (strict_ne(_b0.clone(), f64_any(0x4018000000000000)))?, (Any::lt(_b0.clone(), f64_any(0x401c000000000000)))?, (Any::le(_b0.clone(), f64_any(0x4018000000000000)))?, (Any::gt(_b0.clone(), f64_any(0x401c000000000000)))?, (Any::ge(_b0.clone(), f64_any(0x4018000000000000)))?, (_b0.clone() & f64_any(0x4008000000000000))?, (_b0.clone() | f64_any(0x3ff0000000000000))?, (_b0.clone() ^ f64_any(0x3ff0000000000000))?, (_b0.clone() << f64_any(0x3ff0000000000000))?, (_b0.clone() >> f64_any(0x3ff0000000000000))?, (Any::unsigned_right_shift(_b0.clone(), f64_any(0x3ff0000000000000)))?, (string_any("a") + string_any("b"))?, (f64_any(0x3ff0000000000000) + (f64_any(0x4000000000000000) * f64_any(0x4008000000000000))?)?].to_array().to_any()
12    })].to_object().to_any())
13}