- my $count = scalar @keys + 1;
- print "#if ENABLE(JIT)\n";
- print "#define THUNK_GENERATOR(generator) , generator\n";
- print "#else\n";
- print "#define THUNK_GENERATOR(generator)\n";
- print "#endif\n";
- print "\nstatic const struct HashTableValue ${nameEntries}\[$count\] = {\n";
+
+ print "\nstatic const struct CompactHashIndex ${nameIndex}\[$compactSize\] = {\n";
+ for (my $i = 0; $i < $compactSize; $i++) {
+ my $T = -1;
+ if (defined($table[$i])) { $T = $table[$i]; }
+ my $L = -1;
+ if (defined($links[$i])) { $L = $links[$i]; }
+ print " { $T, $L },\n";
+ }
+ print "};\n\n";
+
+ my $packedSize = scalar @keys;
+ print "\nstatic const struct HashTableValue ${nameEntries}\[$packedSize\] = {\n";