Move serialize into it’s own module

This commit is contained in:
Syrus
2020-05-01 12:58:23 -07:00
parent baf5e04f6b
commit 901b0d8571
7 changed files with 131 additions and 37 deletions

View File

@@ -14,15 +14,13 @@ use serde::{Deserialize, Serialize};
use wasm_common::entity::PrimaryMap;
use wasm_common::LocalFuncIndex;
type FunctionBody = Vec<u8>;
/// The frame info for a Compiled function.
///
/// This structure is only used for reconstructing
/// the frame information after a `Trap`.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Default)]
pub struct CompiledFunctionFrameInfo {
/// The traps (in the body)
/// The traps (in the function body)
pub traps: Vec<TrapInformation>,
/// The address map.