...
This commit is contained in:
@@ -393,17 +393,6 @@ pub const Builder = struct {
|
||||
return self.emit(.{ .compiler_call = .{ .name = @intFromEnum(name_id), .args = owned } }, ret_ty);
|
||||
}
|
||||
|
||||
// ── Protocol ────────────────────────────────────────────────────
|
||||
|
||||
pub fn protocolCallDynamic(self: *Builder, receiver: Ref, method_index: u32, args: []const Ref, ret_ty: TypeId) Ref {
|
||||
const owned = self.module.alloc.dupe(Ref, args) catch unreachable;
|
||||
return self.emit(.{ .protocol_call_dynamic = .{ .receiver = receiver, .method_index = method_index, .args = owned } }, ret_ty);
|
||||
}
|
||||
|
||||
pub fn protocolErase(self: *Builder, concrete: Ref, protocol_type: TypeId) Ref {
|
||||
return self.emit(.{ .protocol_erase = .{ .concrete = concrete, .protocol_type = protocol_type } }, protocol_type);
|
||||
}
|
||||
|
||||
// ── Closure ─────────────────────────────────────────────────────
|
||||
|
||||
pub fn closureCreate(self: *Builder, func_id: FuncId, env: Ref, ty: TypeId) Ref {
|
||||
@@ -426,16 +415,6 @@ pub const Builder = struct {
|
||||
return self.emit(.{ .box_any = .{ .operand = operand, .source_type = source_type } }, .any);
|
||||
}
|
||||
|
||||
// ── Context ─────────────────────────────────────────────────────
|
||||
|
||||
pub fn contextLoad(self: *Builder, field: StringId, ty: TypeId) Ref {
|
||||
return self.emit(.{ .context_load = .{ .field = field, .value = .none } }, ty);
|
||||
}
|
||||
|
||||
pub fn contextStore(self: *Builder, field: StringId, value: Ref) void {
|
||||
self.emitVoid(.{ .context_store = .{ .field = field, .value = value } }, .void);
|
||||
}
|
||||
|
||||
// ── Terminators ─────────────────────────────────────────────────
|
||||
|
||||
pub fn br(self: *Builder, target: BlockId, args: []const Ref) void {
|
||||
|
||||
Reference in New Issue
Block a user