File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -197,10 +197,11 @@ import {
197
197
writeV128 ,
198
198
cloneMap ,
199
199
isPowerOf2 ,
200
- v128_zero ,
201
200
readI32 ,
202
201
isIdentifier ,
203
- accuratePow64
202
+ accuratePow64 ,
203
+ v128_zero ,
204
+ v128_ones ,
204
205
} from "./util" ;
205
206
206
207
import {
@@ -957,7 +958,7 @@ export class Compiler extends DiagnosticEmitter {
957
958
element . identifierNode . range
958
959
) ;
959
960
}
960
-
961
+
961
962
// files
962
963
963
964
/** Compiles the file matching the specified path. */
@@ -10153,6 +10154,7 @@ export class Compiler extends DiagnosticEmitter {
10153
10154
case TypeKind . U64 : return module . i64 ( - 1 , - 1 ) ;
10154
10155
case TypeKind . F32 : return module . f32 ( - 1 ) ;
10155
10156
case TypeKind . F64 : return module . f64 ( - 1 ) ;
10157
+ case TypeKind . V128 : return module . v128 ( v128_ones ) ;
10156
10158
case TypeKind . I31REF : return module . i31_new ( module . i32 ( - 1 ) ) ;
10157
10159
}
10158
10160
}
Original file line number Diff line number Diff line change 5
5
6
6
/** v128 zero constant. */
7
7
export const v128_zero = new Uint8Array ( 16 ) ;
8
+ /** v128 all ones constant. */
9
+ export const v128_ones = new Uint8Array ( 16 ) . fill ( 0xFF ) ;
You can’t perform that action at this time.
0 commit comments