Goose  Diff

Differences From Artifact [ed71fc85eb]:

  • File bs/compile/compiler.cpp — part of check-in [1ad61a2717] at 2021-11-11 20:05:58 on branch trunk — Refactored the code builder: it is now carried around as a Value, and accessed through a bunch of extension points, so we can have different builders (and even user defined ones) later to make classes etc. (user: zlodo size: 5995)

To Artifact [0ccb2854da]:

  • File bs/compile/compiler.cpp — part of check-in [5fc7b0623f] at 2022-05-16 23:40:49 on branch cir-stack-language — Temporarily disabled codegen, verification, and all the tests that can't work without these (user: zlodo size: 6031)

175
176
177
178
179
180
181

182
183
184
185
186
187
188
                    return nullptr;
                }

                cfg->emitTerminator( r->currentLocation(), cir::Ret( get< Value >( converted ) ) );
            }
        }


        verify::Func fv( c, cfg, returnType );
        if( !fv.verify() )
            return nullptr;

        return cfg;
    }
}







>
|

|




175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
                    return nullptr;
                }

                cfg->emitTerminator( r->currentLocation(), cir::Ret( get< Value >( converted ) ) );
            }
        }

        // TODO_REENABLE_VERIFY
     /*   verify::Func fv( c, cfg, returnType );
        if( !fv.verify() )
            return nullptr;*/

        return cfg;
    }
}