From ecc81998556aceb2f80dbb8a3df9818441fe5c81 Mon Sep 17 00:00:00 2001 From: Steve Akinyemi Date: Sat, 24 Nov 2018 18:38:51 +0100 Subject: [PATCH] Remove failing impl --- src/webassembly/instance.rs | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/webassembly/instance.rs b/src/webassembly/instance.rs index 9e8ff6696..aec3ca8a3 100644 --- a/src/webassembly/instance.rs +++ b/src/webassembly/instance.rs @@ -30,8 +30,6 @@ use super::memory::LinearMemory; use super::module::{Export, ImportableExportable, Module}; use super::relocation::{Reloc, RelocSink, RelocationType}; -use crate::apis::emscripten::{align_memory, static_alloc}; - type TablesSlice = UncheckedSlice>; // TODO: this should be `type MemoriesSlice = UncheckedSlice>;`, but that crashes for some reason. type MemoriesSlice = UncheckedSlice>; @@ -100,9 +98,6 @@ pub struct Instance { pub start_func: Option, // Region start memory location // code_base: *const (), - - /// TODO: This should probably be passed as globals to the module. - pub emscripten_data: EmscriptenData, } /// Contains pointers to data (heaps, globals, tables) needed @@ -121,27 +116,6 @@ pub struct DataPointers { pub globals: GlobalsSlice, } -#[derive(Debug)] -#[repr(C)] -pub struct EmscriptenData { - pub static_sealed: bool, - - // global section - pub global_base: u32, - pub static_base: u32, - pub static_top: u32, - - // stack - pub total_stack: u32, - pub stack_base: u32, - pub stack_max: u32, - pub stack_top: u32, - - // heap - pub dynamic_base: u32, - pub dynamictop_ptr: u32, -} - pub struct InstanceOptions { // Shall we mock automatically the imported functions if they don't exist? pub mock_missing_imports: bool, @@ -528,7 +502,7 @@ impl Instance { functions, import_functions, start_func, - emscripten_data, + // emscripten_data, }) }