mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Cleanup
This commit is contained in:
parent
fc9f04b716
commit
ed947b773d
10 changed files with 2331 additions and 4951 deletions
|
@ -30,7 +30,7 @@ use roc_module::symbol::{
|
|||
IdentIds, IdentIdsByModule, Interns, ModuleId, ModuleIds, PQModuleName, PackageModuleIds,
|
||||
PackageQualified, Symbol,
|
||||
};
|
||||
use roc_mono::fl_reuse;
|
||||
use roc_mono::inc_dec;
|
||||
use roc_mono::ir::{
|
||||
CapturedSymbols, ExternalSpecializations, GlueLayouts, LambdaSetId, PartialProc, Proc,
|
||||
ProcLayout, Procs, ProcsBase, UpdateModeIds,
|
||||
|
@ -39,7 +39,7 @@ use roc_mono::layout::LayoutInterner;
|
|||
use roc_mono::layout::{
|
||||
GlobalLayoutInterner, LambdaName, Layout, LayoutCache, LayoutProblem, Niche, STLayoutInterner,
|
||||
};
|
||||
use roc_mono::perceus;
|
||||
use roc_mono::reset_reuse;
|
||||
use roc_packaging::cache::RocCacheDir;
|
||||
use roc_parse::ast::{
|
||||
self, CommentOrNewline, Defs, ExtractSpaces, Spaced, StrLiteral, TypeAnnotation,
|
||||
|
@ -3096,44 +3096,15 @@ fn update<'a>(
|
|||
|
||||
let ident_ids = state.constrained_ident_ids.get_mut(&module_id).unwrap();
|
||||
|
||||
// Proc::insert_reset_reuse_operations(
|
||||
// arena,
|
||||
// &mut layout_interner,
|
||||
// module_id,
|
||||
// ident_ids,
|
||||
// &mut update_mode_ids,
|
||||
// &mut state.procedures,
|
||||
// );
|
||||
|
||||
// debug_print_ir!(state, &layout_interner, ROC_PRINT_IR_AFTER_RESET_REUSE);
|
||||
|
||||
// let host_exposed_procs = bumpalo::collections::Vec::from_iter_in(
|
||||
// state.exposed_to_host.top_level_values.keys().copied(),
|
||||
// arena,
|
||||
// );
|
||||
|
||||
// Proc::insert_refcount_operations(
|
||||
// arena,
|
||||
// &layout_interner,
|
||||
// module_id,
|
||||
// ident_ids,
|
||||
// &mut update_mode_ids,
|
||||
// &mut state.procedures,
|
||||
// &host_exposed_procs,
|
||||
// );
|
||||
|
||||
perceus::insert_refcount_operations(
|
||||
inc_dec::insert_inc_dec_operations(
|
||||
arena,
|
||||
&layout_interner,
|
||||
module_id,
|
||||
ident_ids,
|
||||
&mut update_mode_ids,
|
||||
&mut state.procedures,
|
||||
);
|
||||
|
||||
debug_print_ir!(state, &layout_interner, ROC_PRINT_IR_AFTER_REFCOUNT);
|
||||
|
||||
fl_reuse::insert_reset_reuse_operations(
|
||||
reset_reuse::insert_reset_reuse_operations(
|
||||
arena,
|
||||
&mut layout_interner,
|
||||
module_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue