mem: rename Allocator primitives to alloc_bytes/dealloc_bytes (Phase 4 naming pulled forward, Agra-approved)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
/// }
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user