mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-08 14:03:14 +00:00
Temporarily make all map get calls dynamic
This commit is contained in:
@@ -281,12 +281,12 @@ gb_internal void error_operand_no_value(Operand *o) {
|
||||
}
|
||||
|
||||
gb_internal void add_map_get_dependencies(CheckerContext *c) {
|
||||
if (build_context.dynamic_map_calls) {
|
||||
// if (build_context.dynamic_map_calls) {
|
||||
add_package_dependency(c, "runtime", "__dynamic_map_get");
|
||||
} else {
|
||||
// } else {
|
||||
add_package_dependency(c, "runtime", "map_desired_position");
|
||||
add_package_dependency(c, "runtime", "map_probe_distance");
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
gb_internal void add_map_set_dependencies(CheckerContext *c) {
|
||||
|
||||
@@ -907,7 +907,7 @@ gb_internal lbValue lb_internal_dynamic_map_get_ptr(lbProcedure *p, lbValue cons
|
||||
lbValue key_ptr = {};
|
||||
lbValue hash = lb_gen_map_key_hash(p, key, map_type->Map.key, &key_ptr);
|
||||
|
||||
if (build_context.dynamic_map_calls) {
|
||||
if (true || build_context.dynamic_map_calls) {
|
||||
auto args = array_make<lbValue>(permanent_allocator(), 4);
|
||||
args[0] = lb_emit_transmute(p, map_ptr, t_raw_map_ptr);
|
||||
args[1] = lb_gen_map_info_ptr(p->module, map_type);
|
||||
|
||||
Reference in New Issue
Block a user