cjit update
This commit is contained in:
20
packages/cjit/src/StackValue.zig
Normal file
20
packages/cjit/src/StackValue.zig
Normal file
@@ -0,0 +1,20 @@
|
||||
const std = @import("std");
|
||||
const Self = @This();
|
||||
|
||||
const types = @import("types.zig");
|
||||
const x86_64 = @import("x86_64.zig");
|
||||
|
||||
const Register = x86_64.Register;
|
||||
const Type = types.Type;
|
||||
|
||||
pub const Value = union(enum) {
|
||||
register: Register,
|
||||
constant: u64,
|
||||
symbol: []const u8,
|
||||
/// Displacement in bytes from current value of base pointer register.
|
||||
stack: i32,
|
||||
cpu_flags: void,
|
||||
};
|
||||
|
||||
c_type: Type,
|
||||
value: Value,
|
||||
Reference in New Issue
Block a user