mem: rename Allocator primitives to alloc_bytes/dealloc_bytes (Phase 4 naming pulled forward, Agra-approved)

This commit is contained in:
agra
2026-06-11 15:33:35 +03:00
parent ca5bd52262
commit 88bae3c9f5
58 changed files with 1536 additions and 1534 deletions

View File

@@ -315,8 +315,8 @@ pub const Interpreter = struct {
fn defaultContextValue(self: *Interpreter) Value {
const tbl_ptr: *const @import("types.zig").TypeTable = &self.module.types;
const tbl = @constCast(tbl_ptr);
const alloc_thunk_name = tbl.internString("__thunk_CAllocator_Allocator_alloc");
const dealloc_thunk_name = tbl.internString("__thunk_CAllocator_Allocator_dealloc");
const alloc_thunk_name = tbl.internString("__thunk_CAllocator_Allocator_alloc_bytes");
const dealloc_thunk_name = tbl.internString("__thunk_CAllocator_Allocator_dealloc_bytes");
var alloc_fn: Value = .null_val;
var dealloc_fn: Value = .null_val;

View File

@@ -236,8 +236,8 @@ pub fn getOrCreateThunks(self: *Lowering, proto_name: []const u8, concrete_type_
///
/// @__sx_default_context = internal constant %Context {
/// %Allocator { ptr null,
/// ptr @__thunk_CAllocator_Allocator_alloc,
/// ptr @__thunk_CAllocator_Allocator_dealloc },
/// ptr @__thunk_CAllocator_Allocator_alloc_bytes,
/// ptr @__thunk_CAllocator_Allocator_dealloc_bytes },
/// ptr null
/// }
///