Comments.

This commit is contained in:
Sergey Pepyakin 2019-04-09 18:10:28 +02:00
parent b7a94855d8
commit cd4948e37e
1 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@ impl BlockFrameType {
} }
} }
// TODO: Move under prepare
pub struct Compiler { pub struct Compiler {
/// A sink used to emit optimized code. /// A sink used to emit optimized code.
sink: Sink, sink: Sink,
@ -70,7 +69,7 @@ impl FunctionValidator for Compiler {
type Output = isa::Instructions; type Output = isa::Instructions;
fn new(_module: &FunctionValidationContext) -> Self { fn new(_module: &FunctionValidationContext) -> Self {
let mut compiler = Compiler { let mut compiler = Compiler {
sink: Sink::with_instruction_capacity(0), // TODO: Estimate instruction number. sink: Sink::with_instruction_capacity(0), // TODO: Estimate instruction count.
label_stack: Vec::new(), label_stack: Vec::new(),
}; };