Emit the function body to machine code.
(
&mut self,
body: BinaryReader<'a>,
validator: &mut FuncValidator<ValidatorResources>,
)
| 243 | { |
| 244 | /// Emit the function body to machine code. |
| 245 | pub fn emit( |
| 246 | &mut self, |
| 247 | body: BinaryReader<'a>, |
| 248 | validator: &mut FuncValidator<ValidatorResources>, |
| 249 | ) -> Result<()> { |
| 250 | self.emit_body(body, validator) |
| 251 | .and_then(|_| self.emit_end())?; |
| 252 | |
| 253 | Ok(()) |
| 254 | } |
| 255 | |
| 256 | /// Pops a control frame from the control frame stack. |
| 257 | pub fn pop_control_frame(&mut self) -> Result<ControlStackFrame> { |