|
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"
|
|
72 | 121 | (import "bindings" "dv_set_i8"
|
73 | 122 | (func $dv_set_i8 (param externref i32 i32)))
|
74 | 123 | (import "bindings" "littleEndian" (global $littleEndian i32))
|
75 |
| - (import "fail" "caml_bound_error" (func $caml_bound_error)) |
76 |
| - (import "fail" "caml_raise_out_of_memory" (func $caml_raise_out_of_memory)) |
77 |
| - (import "fail" "caml_invalid_argument" |
78 |
| - (func $caml_invalid_argument (param (ref eq)))) |
79 |
| - (import "fail" "caml_failwith" (func $caml_failwith (param (ref eq)))) |
80 |
| - (import "jslib" "wrap" (func $wrap (param anyref) (result (ref eq)))) |
81 |
| - (import "jslib" "unwrap" (func $unwrap (param (ref eq)) (result anyref))) |
82 |
| - (import "int32" "caml_copy_int32" |
83 |
| - (func $caml_copy_int32 (param i32) (result (ref eq)))) |
84 |
| - (import "int32" "Int32_val" |
85 |
| - (func $Int32_val (param (ref eq)) (result i32))) |
86 |
| - (import "int32" "caml_copy_nativeint" |
87 |
| - (func $caml_copy_nativeint (param i32) (result (ref eq)))) |
88 |
| - (import "int64" "caml_copy_int64" |
89 |
| - (func $caml_copy_int64 (param i64) (result (ref eq)))) |
90 |
| - (import "int64" "Int64_val" |
91 |
| - (func $Int64_val (param (ref eq)) (result i64))) |
92 |
| - (import "obj" "double_array_tag" (global $double_array_tag i32)) |
93 |
| - (import "compare" "unordered" (global $unordered i32)) |
94 |
| - (import "hash" "caml_hash_mix_int" |
95 |
| - (func $caml_hash_mix_int (param i32) (param i32) (result i32))) |
96 |
| - (import "hash" "caml_hash_mix_int64" |
97 |
| - (func $caml_hash_mix_int64 (param i32) (param i64) (result i32))) |
98 |
| - (import "hash" "caml_hash_mix_double" |
99 |
| - (func $caml_hash_mix_double (param i32) (param f64) (result i32))) |
100 |
| - (import "hash" "caml_hash_mix_float" |
101 |
| - (func $caml_hash_mix_float (param i32) (param f32) (result i32))) |
102 |
| - (import "hash" "caml_hash_mix_float16" |
103 |
| - (func $caml_hash_mix_float16 (param i32) (param i32) (result i32))) |
104 |
| - (import "marshal" "caml_serialize_int_1" |
105 |
| - (func $caml_serialize_int_1 (param (ref eq)) (param i32))) |
106 |
| - (import "marshal" "caml_serialize_int_2" |
107 |
| - (func $caml_serialize_int_2 (param (ref eq)) (param i32))) |
108 |
| - (import "marshal" "caml_serialize_int_4" |
109 |
| - (func $caml_serialize_int_4 (param (ref eq)) (param i32))) |
110 |
| - (import "marshal" "caml_serialize_int_8" |
111 |
| - (func $caml_serialize_int_8 (param (ref eq)) (param i64))) |
112 |
| - (import "marshal" "caml_deserialize_uint_1" |
113 |
| - (func $caml_deserialize_uint_1 (param (ref eq)) (result i32))) |
114 |
| - (import "marshal" "caml_deserialize_sint_1" |
115 |
| - (func $caml_deserialize_sint_1 (param (ref eq)) (result i32))) |
116 |
| - (import "marshal" "caml_deserialize_uint_2" |
117 |
| - (func $caml_deserialize_uint_2 (param (ref eq)) (result i32))) |
118 |
| - (import "marshal" "caml_deserialize_sint_2" |
119 |
| - (func $caml_deserialize_sint_2 (param (ref eq)) (result i32))) |
120 |
| - (import "marshal" "caml_deserialize_int_4" |
121 |
| - (func $caml_deserialize_int_4 (param (ref eq)) (result i32))) |
122 |
| - (import "marshal" "caml_deserialize_int_8" |
123 |
| - (func $caml_deserialize_int_8 (param (ref eq)) (result i64))) |
124 | 124 |
|
125 | 125 | (type $block (array (mut (ref eq))))
|
126 | 126 | (type $bytes (array (mut i8)))
|
|
0 commit comments