Skip to content

Commit

Permalink
WIP fat pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Nov 25, 2022
1 parent aa3942f commit 893d43c
Show file tree
Hide file tree
Showing 25 changed files with 1,469 additions and 1,906 deletions.
10 changes: 5 additions & 5 deletions compiler/src/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,17 @@ impl SymbolNames {

#[derive(Copy, Clone)]
enum RuntimeFunction {
IntNewPermanent,
IntNewPermanent, // TODO: remove
CheckRefs,
Free,
FloatNewPermanent,
FloatNewPermanent, // TODO: remove
StringNewPermanent,
ArrayNewPermanent,
ArrayNew,
ArrayPush,
RefKind,
Reduce,
NewObject,
NewObject, // TODO: pass class ID and size?
Increment,
Decrement,
StringEquals,
Expand Down Expand Up @@ -1871,10 +1871,10 @@ impl<'a, 'ctx> Lower<'a, 'ctx> {
Instruction::Clone(ins) => {
match ins.kind {
CloneKind::Float => {
// TODO: clone
// TODO: just copy register/ptr
}
CloneKind::Int => {
// TODO: read int, then allocate new if needed
// TODO: just copy register/ptr
}
CloneKind::Process
| CloneKind::String
Expand Down
1 change: 0 additions & 1 deletion vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pub mod numeric;
pub mod page;
pub mod platform;
pub mod process;
pub mod result;
pub mod runtime;
pub mod scheduler;
pub mod socket;
Expand Down
Loading

0 comments on commit 893d43c

Please sign in to comment.