Prechádzať zdrojové kódy

+ support all subset locations in twasmaddnode.second_generic_compare. This improves support for bitpacked records and arrays in WebAssembly.

Nikolay Nikolov 2 týždňov pred
rodič
commit
d29cc470f6
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      compiler/wasm32/nwasmadd.pas

+ 4 - 1
compiler/wasm32/nwasmadd.pas

@@ -383,7 +383,10 @@ interface
           LOC_CONSTANT:
             thlcgwasm(hlcg).a_cmp_const_loc_stack(current_asmdata.CurrAsmList,left.resultdef,cmpop,right.location.value,left.location);
           else
-            internalerror(2011010413);
+            begin
+              hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,right.resultdef,right.resultdef,false);
+              thlcgwasm(hlcg).a_cmp_reg_loc_stack(current_asmdata.CurrAsmList,left.resultdef,cmpop,right.location.register,left.location);
+            end;
         end;
         set_result_location_reg;
         thlcgwasm(hlcg).a_load_stack_loc(current_asmdata.CurrAsmList,resultdef,location);