Goose  Diff

Differences From Artifact [3c204ea527]:

  • File bs/builtins/types/runtime/init.cpp — part of check-in [4f05876cc2] at 2022-06-08 22:38:10 on branch cir-stack-language — Refactored the verifier to use the stack-based CIR. It compiles but isn't re-enabled yet (user: zlodo size: 967) [more...]

To Artifact [e052ef24bf]:

  • File bs/builtins/types/runtime/init.cpp — part of check-in [96c02f37d1] at 2023-11-05 13:04:26 on branch trunk — Implemented inline functions (user: zlodo size: 967)

16
17
18
19
20
21
22
23
24
25
26
        // Initialization for integer vars
        RegisterBuiltinFunc< Intrinsic< Value ( IntegerMutRefType, IntegerType ) > >( e, e.extInitialize(),
            []( auto&& c, const Value& r, const Value& initVal )
            {
                G_VAL_ASSERT( r, !r.isConstant() );
                auto refType = *FromValue< ReferenceType >( *EIRToValue( r.type() ) );
                return BuildComputedValue( GetValueType< void >(),
                    r, initVal, Store( refType.type(), initVal.locationId(), r.locationId() ) );
            } );
    }
}







|



16
17
18
19
20
21
22
23
24
25
26
        // Initialization for integer vars
        RegisterBuiltinFunc< Intrinsic< Value ( IntegerMutRefType, IntegerType ) > >( e, e.extInitialize(),
            []( auto&& c, const Value& r, const Value& initVal )
            {
                G_VAL_ASSERT( r, !r.isConstant() );
                auto refType = *FromValue< ReferenceType >( *EIRToValue( r.type() ) );
                return BuildComputedValue( GetValueType< void >(),
                    initVal, r, Store( refType.type(), initVal.locationId(), r.locationId() ) );
            } );
    }
}