Lines Matching refs:push_str
341 s.push_str("\n"); in store_flat_helper()
356 s.push_str("block\n"); in store_flat_helper()
367 s.push_str("local.get 1\n"); in store_flat_helper()
368 s.push_str("br_table"); in store_flat_helper()
372 s.push_str("\nend\n"); in store_flat_helper()
389 s.push_str("return\n"); in store_flat_helper()
390 s.push_str("end\n"); in store_flat_helper()
394 s.push_str("unreachable\n"); in store_flat_helper()
425 s.push_str(")\n"); in store_flat_helper()
494 s.push_str("\n"); in load_flat_helper()
512 s.push_str("block $r\n"); in load_flat_helper()
516 s.push_str("block\n"); in load_flat_helper()
527 s.push_str("local.tee $r0\n"); in load_flat_helper()
528 s.push_str("br_table"); in load_flat_helper()
532 s.push_str("\nend\n"); in load_flat_helper()
544 s.push_str("i32.reinterpret_f32\n"); in load_flat_helper()
547 s.push_str("i64.extend_i32_u\n"); in load_flat_helper()
550 s.push_str("i32.reinterpret_f32\n"); in load_flat_helper()
551 s.push_str("i64.extend_i32_u\n"); in load_flat_helper()
554 s.push_str("i64.reinterpret_f64\n"); in load_flat_helper()
562 s.push_str("br $r\n"); in load_flat_helper()
563 s.push_str("end\n"); in load_flat_helper()
567 s.push_str("unreachable\n"); in load_flat_helper()
568 s.push_str("end\n"); in load_flat_helper()
603 s.push_str(")\n"); in load_flat_helper()
887 wat.push_str(&format!("(type $import (func")); in make_import_and_export()
901 wat.push_str(" (param i32)"); // result pointer in make_import_and_export()
904 wat.push_str(" (result i32)"); // status code in make_import_and_export()
908 wat.push_str("))\n"); in make_import_and_export()
911 wat.push_str(&format!( in make_import_and_export()
920 wat.push_str(&format!("(type $export (func")); in make_import_and_export()
925 wat.push_str(" (result i32)"); // status code in make_import_and_export()
930 wat.push_str("))\n"); in make_import_and_export()
935 wat.push_str(&format!("(type $task.return (func")); in make_import_and_export()
937 wat.push_str("))\n"); in make_import_and_export()
938 wat.push_str(&format!( in make_import_and_export()
943 wat.push_str(&format!( in make_import_and_export()
972 wat.push_str(&format!( in make_import_and_export()
999 wat.push_str(&format!( in make_import_and_export()
1013 wat.push_str("call $host\n"); in make_import_and_export()
1019 wat.push_str("i32.const 2\n"); in make_import_and_export()
1020 wat.push_str("i32.ne\n"); in make_import_and_export()
1021 wat.push_str("if unreachable end\n"); in make_import_and_export()
1034 wat.push_str("local.get $retptr\n"); in make_import_and_export()
1047 wat.push_str("call $task.return\n"); in make_import_and_export()
1059 wat.push_str("local.get $retptr\n"); in make_import_and_export()
1061 wat.push_str("call $task.return\n"); in make_import_and_export()
1068 wat.push_str("i32.const 0\n"); // completed status code in make_import_and_export()
1071 wat.push_str(")\n"); in make_import_and_export()
1077 wat.push_str( in make_import_and_export()
1117 wat.push_str(&format!(" ({name}")); in make_import_and_export()
1119 wat.push_str(&format!(" {ty}")); in make_import_and_export()
1122 wat.push_str(")"); in make_import_and_export()
1125 wat.push_str(&format!(" ({name} i32)")); in make_import_and_export()
1142 wat.push_str(" (result"); in make_import_and_export()
1144 wat.push_str(&format!(" {ty}")); in make_import_and_export()
1146 wat.push_str(")"); in make_import_and_export()
1149 wat.push_str(" (param i32)"); in make_import_and_export()
1357 Type::Bool => dst.push_str("bool"), in write_ref()
1358 Type::S8 => dst.push_str("s8"), in write_ref()
1359 Type::U8 => dst.push_str("u8"), in write_ref()
1360 Type::S16 => dst.push_str("s16"), in write_ref()
1361 Type::U16 => dst.push_str("u16"), in write_ref()
1362 Type::S32 => dst.push_str("s32"), in write_ref()
1363 Type::U32 => dst.push_str("u32"), in write_ref()
1364 Type::S64 => dst.push_str("s64"), in write_ref()
1365 Type::U64 => dst.push_str("u64"), in write_ref()
1366 Type::Float32 => dst.push_str("float32"), in write_ref()
1367 Type::Float64 => dst.push_str("float64"), in write_ref()
1368 Type::Char => dst.push_str("char"), in write_ref()
1369 Type::String => dst.push_str("string"), in write_ref()
1408 decl.push_str("(list "); in write_decl()
1410 decl.push_str(")"); in write_decl()
1413 decl.push_str("(map "); in write_decl()
1415 decl.push_str(" "); in write_decl()
1417 decl.push_str(")"); in write_decl()
1420 decl.push_str("(record"); in write_decl()
1424 decl.push_str(")"); in write_decl()
1426 decl.push_str(")"); in write_decl()
1429 decl.push_str("(tuple"); in write_decl()
1431 decl.push_str(" "); in write_decl()
1434 decl.push_str(")"); in write_decl()
1437 decl.push_str("(variant"); in write_decl()
1441 decl.push_str(" "); in write_decl()
1444 decl.push_str(")"); in write_decl()
1446 decl.push_str(")"); in write_decl()
1449 decl.push_str("(enum"); in write_decl()
1453 decl.push_str(")"); in write_decl()
1456 decl.push_str("(option "); in write_decl()
1458 decl.push_str(")"); in write_decl()
1461 decl.push_str("(result"); in write_decl()
1463 decl.push_str(" "); in write_decl()
1467 decl.push_str(" (error "); in write_decl()
1469 decl.push_str(")"); in write_decl()
1471 decl.push_str(")"); in write_decl()
1474 decl.push_str("(flags"); in write_decl()
1478 decl.push_str(")"); in write_decl()
1481 decl.push_str(")\n"); in write_decl()
1544 intrinsic_defs.push_str(&format!( in make_component()
1550 intrinsic_imports.push_str( in make_component()
1749 params.push_str(&format!(" (param \"p{i}\" ")); in declarations()
1751 params.push_str(")"); in declarations()
1756 results.push_str(&format!(" (result ")); in declarations()
1758 results.push_str(")"); in declarations()
1786 types.push_str(&decl); in declarations()
1787 types.push_str("\n"); in declarations()