mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add some disabled debugging statements
This commit is contained in:
parent
b1ba1d2db9
commit
ea64b6488c
2 changed files with 15 additions and 1 deletions
|
@ -516,6 +516,11 @@ impl<'a> WasmBackend<'a> {
|
||||||
.refcount_proc_gen
|
.refcount_proc_gen
|
||||||
.expand_refcount_stmt(ident_ids, *layout, modify, *following);
|
.expand_refcount_stmt(ident_ids, *layout, modify, *following);
|
||||||
|
|
||||||
|
if false {
|
||||||
|
self.register_symbol_debug_names();
|
||||||
|
println!("## rc_stmt:\n{}\n{:?}", rc_stmt.to_pretty(200), rc_stmt);
|
||||||
|
}
|
||||||
|
|
||||||
// If we're creating a new RC procedure, we need to store its symbol data,
|
// If we're creating a new RC procedure, we need to store its symbol data,
|
||||||
// so that we can correctly generate calls to it.
|
// so that we can correctly generate calls to it.
|
||||||
if let Some((rc_proc_sym, rc_proc_layout)) = new_proc_info {
|
if let Some((rc_proc_sym, rc_proc_layout)) = new_proc_info {
|
||||||
|
@ -704,7 +709,7 @@ impl<'a> WasmBackend<'a> {
|
||||||
sym: Symbol,
|
sym: Symbol,
|
||||||
layout: &Layout<'a>,
|
layout: &Layout<'a>,
|
||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
let not_supported_error = || Err(format!("Literal value {:?} is not yet implemented", lit));
|
let not_supported_error = || panic!("Literal value {:?} is not yet implemented", lit);
|
||||||
|
|
||||||
match storage {
|
match storage {
|
||||||
StoredValue::VirtualMachineStack { value_type, .. } => {
|
StoredValue::VirtualMachineStack { value_type, .. } => {
|
||||||
|
|
|
@ -96,6 +96,14 @@ pub fn build_module_help<'a>(
|
||||||
RefcountProcGenerator::new(env.arena, IntWidth::I32, env.module_id),
|
RefcountProcGenerator::new(env.arena, IntWidth::I32, env.module_id),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if false {
|
||||||
|
println!("## procs");
|
||||||
|
for proc in procs.iter() {
|
||||||
|
println!("{}", proc.to_pretty(200));
|
||||||
|
println!("{:#?}", proc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Generate procs from user code
|
// Generate procs from user code
|
||||||
for proc in procs.iter() {
|
for proc in procs.iter() {
|
||||||
backend.build_proc(proc)?;
|
backend.build_proc(proc)?;
|
||||||
|
@ -107,6 +115,7 @@ pub fn build_module_help<'a>(
|
||||||
backend.register_symbol_debug_names();
|
backend.register_symbol_debug_names();
|
||||||
|
|
||||||
if false {
|
if false {
|
||||||
|
println!("## refcount_procs");
|
||||||
for proc in refcount_procs.iter() {
|
for proc in refcount_procs.iter() {
|
||||||
println!("{}", proc.to_pretty(200));
|
println!("{}", proc.to_pretty(200));
|
||||||
println!("{:#?}", proc);
|
println!("{:#?}", proc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue