File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2887,19 +2887,17 @@ addToLibrary({
2887
2887
#endif
2888
2888
// Floats are always passed as doubles, and doubles and int64s take up 8
2889
2889
// bytes (two 32-bit slots) in memory, align reads to these:
2890
- buf += ( ch != 105 /*i*/ ) & buf ;
2890
+ buf += ( ch != { { { charCode ( 'i' ) } } } ) & buf ;
2891
+ readEmAsmArgsArray . push (
2892
+ ch == { { { charCode ( 'i' ) } } } ? HEAP32 [ buf ] :
2891
2893
#if MEMORY64
2892
- // Special case for pointers under wasm64 which we read as int53 Numbers.
2893
- if ( ch == 112 /*p*/ ) {
2894
- readEmAsmArgsArray . push ( readI53FromI64 ( buf ++ << 2 ) ) ;
2895
- } else
2894
+ // Special case for pointers under wasm64 which we read as int53 Numbers.
2895
+ ch == { { { charCode ( 'p' ) } } } ? { { { makeGetValue ( 'buf++ << 2' , 0 , '*' ) } } } :
2896
2896
#endif
2897
- readEmAsmArgsArray . push (
2898
- ch == 105 /*i*/ ? HEAP32 [ buf ] :
2899
2897
#if WASM_BIGINT
2900
- ( ch == 106 /*j*/ ? HEAP64 : HEAPF64 ) [ buf ++ >> 1 ]
2898
+ ( ch == { { { charCode ( 'j' ) } } } ? HEAP64 : HEAPF64 ) [ buf ++ >> 1 ]
2901
2899
#else
2902
- HEAPF64 [ buf ++ >> 1 ]
2900
+ HEAPF64 [ buf ++ >> 1 ]
2903
2901
#endif
2904
2902
) ;
2905
2903
++ buf ;
Original file line number Diff line number Diff line change @@ -2144,6 +2144,7 @@ def test_inlinejs4(self):
2144
2144
''' , 'false' , assert_returncode = NON_ZERO )
2145
2145
2146
2146
def test_em_asm (self ):
2147
+ self .maybe_closure ()
2147
2148
self .do_core_test ('test_em_asm.cpp' )
2148
2149
2149
2150
def test_em_asm_c (self ):
You can’t perform that action at this time.
0 commit comments