|
30 | 30 | (type $func_f64 (func (param f64)))
|
31 | 31 |
|
32 | 32 | (import "spectest" "print_i32" (func (param i32)))
|
33 |
| - ;; JavaScript can't handle i64 yet. |
34 |
| - ;; (func (import "spectest" "print_i64") (param i64)) |
| 33 | + (func (import "spectest" "print_i64") (param i64)) |
35 | 34 | (import "spectest" "print_i32" (func $print_i32 (param i32)))
|
36 |
| - ;; JavaScript can't handle i64 yet. |
37 |
| - ;; (import "spectest" "print_i64" (func $print_i64 (param i64))) |
| 35 | + (import "spectest" "print_i64" (func $print_i64 (param i64))) |
38 | 36 | (import "spectest" "print_f32" (func $print_f32 (param f32)))
|
39 | 37 | (import "spectest" "print_f64" (func $print_f64 (param f64)))
|
40 | 38 | (import "spectest" "print_i32_f32" (func $print_i32_f32 (param i32 f32)))
|
|
72 | 70 | (func (export "print64") (param $i i64)
|
73 | 71 | (local $x f64)
|
74 | 72 | (local.set $x (f64.convert_i64_s (call $i64->i64 (local.get $i))))
|
75 |
| - ;; JavaScript can't handle i64 yet. |
76 |
| - ;; (call 1 (local.get $i)) |
| 73 | + (call 1 (local.get $i)) |
77 | 74 | (call $print_f64_f64
|
78 | 75 | (f64.add (local.get $x) (f64.const 1))
|
79 | 76 | (f64.const 53)
|
80 | 77 | )
|
81 |
| - ;; JavaScript can't handle i64 yet. |
82 |
| - ;; (call $print_i64 (local.get $i)) |
| 78 | + (call $print_i64 (local.get $i)) |
83 | 79 | (call $print_f64 (local.get $x))
|
84 | 80 | (call $print_f64-2 (local.get $x))
|
85 | 81 | (call_indirect (type $func_f64) (local.get $x) (i32.const 1))
|
|
234 | 230 | (import "spectest" "global_i32" (global $x i32))
|
235 | 231 | (global $y (import "spectest" "global_i32") i32)
|
236 | 232 |
|
237 |
| - ;; JavaScript can't handle i64 yet. |
238 |
| - ;; (import "spectest" "global_i64" (global i64)) |
| 233 | + (import "spectest" "global_i64" (global i64)) |
239 | 234 | (import "spectest" "global_f32" (global f32))
|
240 | 235 | (import "spectest" "global_f64" (global f64))
|
241 | 236 |
|
|
0 commit comments