@@ -2364,37 +2364,6 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
23642364 }
23652365 }
23662366
2367- // void visit_ComplexConstant(const ASR::ComplexConstant_t &x) {
2368- // double re = x.m_re;
2369- // double im = x.m_im;
2370- // int a_kind = ASRUtils::extract_kind_from_ttype_t(x.m_type);
2371- // switch( a_kind ) {
2372- // case 4: {
2373- // wasm::emit_i32_const(m_code_section, m_al, avail_mem_loc);
2374- // wasm::emit_f32_const(m_code_section, m_al, re);
2375- // wasm::emit_f32_store(m_code_section, m_al, wasm::mem_align::b8, 0);
2376- // wasm::emit_i32_const(m_code_section, m_al, avail_mem_loc + a_kind);
2377- // wasm::emit_f32_const(m_code_section, m_al, im);
2378- // wasm::emit_f32_store(m_code_section, m_al, wasm::mem_align::b8, 0);
2379- // break;
2380- // }
2381- // case 8: {
2382- // wasm::emit_i32_const(m_code_section, m_al, avail_mem_loc);
2383- // wasm::emit_f64_const(m_code_section, m_al, re);
2384- // wasm::emit_f64_store(m_code_section, m_al, wasm::mem_align::b8, 0);
2385- // wasm::emit_i32_const(m_code_section, m_al, avail_mem_loc + a_kind);
2386- // wasm::emit_f64_const(m_code_section, m_al, im);
2387- // wasm::emit_f64_store(m_code_section, m_al, wasm::mem_align::b8, 0);
2388- // break;
2389- // }
2390- // default: {
2391- // throw CodeGenError("kind type is not supported");
2392- // }
2393- // }
2394- // wasm::emit_i32_const(m_code_section, m_al, avail_mem_loc);
2395- // avail_mem_loc += a_kind * 2;
2396- // }
2397-
23982367 void visit_ComplexConstant (const ASR::ComplexConstant_t &x) {
23992368 int a_kind = ASRUtils::extract_kind_from_ttype_t (x.m_type );
24002369 switch ( a_kind ) {
0 commit comments