|
16 | 16 | ;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
17 | 17 |
|
18 | 18 | (module |
| 19 | + (import "fail" "caml_bound_error" (func $caml_bound_error)) |
| 20 | + (import "fail" "caml_raise_out_of_memory" (func $caml_raise_out_of_memory)) |
| 21 | + (import "fail" "caml_invalid_argument" |
| 22 | + (func $caml_invalid_argument (param (ref eq)))) |
| 23 | + (import "fail" "caml_failwith" (func $caml_failwith (param (ref eq)))) |
| 24 | + (import "jslib" "wrap" (func $wrap (param anyref) (result (ref eq)))) |
| 25 | + (import "jslib" "unwrap" (func $unwrap (param (ref eq)) (result anyref))) |
| 26 | + (import "int32" "caml_copy_int32" |
| 27 | + (func $caml_copy_int32 (param i32) (result (ref eq)))) |
| 28 | + (import "int32" "Int32_val" |
| 29 | + (func $Int32_val (param (ref eq)) (result i32))) |
| 30 | + (import "int32" "caml_copy_nativeint" |
| 31 | + (func $caml_copy_nativeint (param i32) (result (ref eq)))) |
| 32 | + (import "int64" "caml_copy_int64" |
| 33 | + (func $caml_copy_int64 (param i64) (result (ref eq)))) |
| 34 | + (import "int64" "Int64_val" |
| 35 | + (func $Int64_val (param (ref eq)) (result i64))) |
| 36 | + (import "obj" "double_array_tag" (global $double_array_tag i32)) |
| 37 | + (import "compare" "unordered" (global $unordered i32)) |
| 38 | + (import "hash" "caml_hash_mix_int" |
| 39 | + (func $caml_hash_mix_int (param i32) (param i32) (result i32))) |
| 40 | + (import "hash" "caml_hash_mix_int64" |
| 41 | + (func $caml_hash_mix_int64 (param i32) (param i64) (result i32))) |
| 42 | + (import "hash" "caml_hash_mix_double" |
| 43 | + (func $caml_hash_mix_double (param i32) (param f64) (result i32))) |
| 44 | + (import "hash" "caml_hash_mix_float" |
| 45 | + (func $caml_hash_mix_float (param i32) (param f32) (result i32))) |
| 46 | + (import "hash" "caml_hash_mix_float16" |
| 47 | + (func $caml_hash_mix_float16 (param i32) (param i32) (result i32))) |
| 48 | + (import "marshal" "caml_serialize_int_1" |
| 49 | + (func $caml_serialize_int_1 (param (ref eq)) (param i32))) |
| 50 | + (import "marshal" "caml_serialize_int_2" |
| 51 | + (func $caml_serialize_int_2 (param (ref eq)) (param i32))) |
| 52 | + (import "marshal" "caml_serialize_int_4" |
| 53 | + (func $caml_serialize_int_4 (param (ref eq)) (param i32))) |
| 54 | + (import "marshal" "caml_serialize_int_8" |
| 55 | + (func $caml_serialize_int_8 (param (ref eq)) (param i64))) |
| 56 | + (import "marshal" "caml_deserialize_uint_1" |
| 57 | + (func $caml_deserialize_uint_1 (param (ref eq)) (result i32))) |
| 58 | + (import "marshal" "caml_deserialize_sint_1" |
| 59 | + (func $caml_deserialize_sint_1 (param (ref eq)) (result i32))) |
| 60 | + (import "marshal" "caml_deserialize_uint_2" |
| 61 | + (func $caml_deserialize_uint_2 (param (ref eq)) (result i32))) |
| 62 | + (import "marshal" "caml_deserialize_sint_2" |
| 63 | + (func $caml_deserialize_sint_2 (param (ref eq)) (result i32))) |
| 64 | + (import "marshal" "caml_deserialize_int_4" |
| 65 | + (func $caml_deserialize_int_4 (param (ref eq)) (result i32))) |
| 66 | + (import "marshal" "caml_deserialize_int_8" |
| 67 | + (func $caml_deserialize_int_8 (param (ref eq)) (result i64))) |
19 | 68 | (import "bindings" "ta_create" |
20 | 69 | (func $ta_create (param i32) (param i32) (result (ref extern)))) |
21 | 70 | (import "bindings" "ta_normalize" |
|
77 | 126 | (func $ta_blit_to_bytes |
78 | 127 | (param (ref extern)) (param i32) (param (ref $bytes)) (param i32) |
79 | 128 | (param i32))) |
80 | | - (import "fail" "caml_bound_error" (func $caml_bound_error)) |
81 | | - (import "fail" "caml_raise_out_of_memory" (func $caml_raise_out_of_memory)) |
82 | | - (import "fail" "caml_invalid_argument" |
83 | | - (func $caml_invalid_argument (param (ref eq)))) |
84 | | - (import "fail" "caml_failwith" (func $caml_failwith (param (ref eq)))) |
85 | | - (import "jslib" "wrap" (func $wrap (param anyref) (result (ref eq)))) |
86 | | - (import "jslib" "unwrap" (func $unwrap (param (ref eq)) (result anyref))) |
87 | | - (import "int32" "caml_copy_int32" |
88 | | - (func $caml_copy_int32 (param i32) (result (ref eq)))) |
89 | | - (import "int32" "Int32_val" |
90 | | - (func $Int32_val (param (ref eq)) (result i32))) |
91 | | - (import "int32" "caml_copy_nativeint" |
92 | | - (func $caml_copy_nativeint (param i32) (result (ref eq)))) |
93 | | - (import "int64" "caml_copy_int64" |
94 | | - (func $caml_copy_int64 (param i64) (result (ref eq)))) |
95 | | - (import "int64" "Int64_val" |
96 | | - (func $Int64_val (param (ref eq)) (result i64))) |
97 | | - (import "obj" "double_array_tag" (global $double_array_tag i32)) |
98 | | - (import "compare" "unordered" (global $unordered i32)) |
99 | | - (import "hash" "caml_hash_mix_int" |
100 | | - (func $caml_hash_mix_int (param i32) (param i32) (result i32))) |
101 | | - (import "hash" "caml_hash_mix_int64" |
102 | | - (func $caml_hash_mix_int64 (param i32) (param i64) (result i32))) |
103 | | - (import "hash" "caml_hash_mix_double" |
104 | | - (func $caml_hash_mix_double (param i32) (param f64) (result i32))) |
105 | | - (import "hash" "caml_hash_mix_float" |
106 | | - (func $caml_hash_mix_float (param i32) (param f32) (result i32))) |
107 | | - (import "hash" "caml_hash_mix_float16" |
108 | | - (func $caml_hash_mix_float16 (param i32) (param i32) (result i32))) |
109 | | - (import "marshal" "caml_serialize_int_1" |
110 | | - (func $caml_serialize_int_1 (param (ref eq)) (param i32))) |
111 | | - (import "marshal" "caml_serialize_int_2" |
112 | | - (func $caml_serialize_int_2 (param (ref eq)) (param i32))) |
113 | | - (import "marshal" "caml_serialize_int_4" |
114 | | - (func $caml_serialize_int_4 (param (ref eq)) (param i32))) |
115 | | - (import "marshal" "caml_serialize_int_8" |
116 | | - (func $caml_serialize_int_8 (param (ref eq)) (param i64))) |
117 | | - (import "marshal" "caml_deserialize_uint_1" |
118 | | - (func $caml_deserialize_uint_1 (param (ref eq)) (result i32))) |
119 | | - (import "marshal" "caml_deserialize_sint_1" |
120 | | - (func $caml_deserialize_sint_1 (param (ref eq)) (result i32))) |
121 | | - (import "marshal" "caml_deserialize_uint_2" |
122 | | - (func $caml_deserialize_uint_2 (param (ref eq)) (result i32))) |
123 | | - (import "marshal" "caml_deserialize_sint_2" |
124 | | - (func $caml_deserialize_sint_2 (param (ref eq)) (result i32))) |
125 | | - (import "marshal" "caml_deserialize_int_4" |
126 | | - (func $caml_deserialize_int_4 (param (ref eq)) (result i32))) |
127 | | - (import "marshal" "caml_deserialize_int_8" |
128 | | - (func $caml_deserialize_int_8 (param (ref eq)) (result i64))) |
129 | 129 |
|
130 | 130 | (type $block (array (mut (ref eq)))) |
131 | 131 | (type $bytes (array (mut i8))) |
|
0 commit comments