diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-17 12:57:53 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-17 12:57:53 +0000 |
| commit | d51f80a5bd21c4dd6cac8d623e96d1093dc1deff (patch) | |
| tree | 4d84abd62f071da1ac8ce6ee785990c4ccd28865 /src/main/java | |
| parent | c3e4f46095658fdf331046e5812bc135e66f4844 (diff) | |
Remove GC perm roots
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/patio/PatioCodeGenGc.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenGc.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenGc.java index 4c9f6316..525ab89a 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenGc.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenGc.java @@ -55,8 +55,6 @@ public class PatioCodeGenGc { // == Roots == - // == Root stack == - public static final PatioType GC_ROOT_STACK_INDEX_TYPE = PatioTypes.INT; private static final PatioFunctionDeclaration GET_GC_ROOT_STACK_INDEX = new PatioFunctionDeclaration( @@ -125,30 +123,6 @@ public class PatioCodeGenGc { )); } - // == Perm roots == - - private static final PatioFunctionDeclaration ADD_PERM_GC_ROOT = new PatioFunctionDeclaration( - "shed__runtime__gc_add_perm_root", - List.of(PatioLocal.param("gc_root", PatioCodeGenTypes.VALUE_TYPE)), - PatioTypes.VOID, - Sources.RUNTIME - ); - - public static PatioCodeGenContext addPermGcRoot( - PatioOperand gcRoot, - Source source, - PatioCodeGenContext context - ) { - return context - .ensureCompilationUnitElement(ADD_PERM_GC_ROOT) - .addInstruction(new PatioCall( - Optional.empty(), - ADD_PERM_GC_ROOT.name(), - List.of(gcRoot), - source - )); - } - // == Allocation == public static PatioCodeGenContext alloc( |
