Introduce an __smo
intrinsic and messages types in the JSON ABI
#3457
Labels
ABI
Everything to do the ABI, especially the JSON representation
compiler: codegen
Everything to do with IR->ASM, register allocation, etc.
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler: ir
IRgen and sway-ir including optimization passes
compiler: parser
Everything to do with the parser
lib: std
Standard library
This is a wrapper around
smo
that also encode the ID of the type of the message as the first word of the message data. Similarly tolog
, this type ID is also emitted to the JSON ABI (see FuelLabs/fuel-specs#435).We can then create an alternative version of
std::messages::send_message
that takes a value of an arbitrary (non-heap) type and calls__smo
under the hood.The text was updated successfully, but these errors were encountered: