DAS_FATAL_ERROR("Failed to find annotation %s in module %s.\n", annName, moduleName);
}
return result;
}
DAS_APIvoidjit_trap() {
DAS_FATAL_ERROR("FATAL: Unresolved dynamic function call in compiled code. This indicates a missing JIT symbol. Disable `strict` mode or remove this call.\n");
}
DAS_APIvoidjit_set_command_line_arguments( int argc, char * argv[] ) {
if ( tab->isLocked() ) context->throw_error_at(at, "can't insert to a locked table");
TableHash<KeyType> thh(context,valueTypeSize);
auto hfn = hash_function(*context, key);
int64_t idx = thh.reserve(*tab, key, hfn, at);
// TODO Phase 7: widen JIT helper return to int64_t. Until then, guard the narrowing
// so JIT-emitted code never gets a wrapped-negative slot index for huge tables.
if ( idx > int64_t(INT32_MAX) ) context->throw_error_at(at, "JIT table slot index %lld exceeds INT32_MAX; JIT does not yet support tables past INT_MAX slots", (longlong)idx);
if ( tab->isLocked() ) context->throw_error_at(at, "can't insert to a locked table");
TableHash<char *> thh(context,valueTypeSize);
int64_t idx = thh.reserve(*tab, key, hfn, at);
if ( idx > int64_t(INT32_MAX) ) context->throw_error_at(at, "JIT table slot index %lld exceeds INT32_MAX; JIT does not yet support tables past INT_MAX slots", (longlong)idx);
if ( idx > int64_t(INT32_MAX) ) context->throw_error_at(at, "JIT table slot index %lld exceeds INT32_MAX; JIT does not yet support tables past INT_MAX slots", (longlong)idx);