mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-12 22:41:40 +00:00
Remove variable.rs
This commit is contained in:
@ -5,7 +5,6 @@ use parking_lot::RwLock;
|
||||
use elements::{TableType, ResizableLimits};
|
||||
use interpreter::Error;
|
||||
use interpreter::module::check_limits;
|
||||
use interpreter::variable::VariableType;
|
||||
use interpreter::store::FuncInstance;
|
||||
|
||||
/// Table instance.
|
||||
@ -18,12 +17,12 @@ pub struct TableInstance {
|
||||
}
|
||||
|
||||
impl fmt::Debug for TableInstance {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("TableInstance")
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("TableInstance")
|
||||
.field("limits", &self.limits)
|
||||
.field("buffer.len", &self.buffer.read().len())
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TableInstance {
|
||||
@ -43,11 +42,6 @@ impl TableInstance {
|
||||
&self.limits
|
||||
}
|
||||
|
||||
/// Get variable type for this table.
|
||||
pub fn variable_type(&self) -> VariableType {
|
||||
panic!("TODO")
|
||||
}
|
||||
|
||||
/// Get the specific value in the table
|
||||
pub fn get(&self, offset: u32) -> Result<Rc<FuncInstance>, Error> {
|
||||
let buffer = self.buffer.read();
|
||||
|
Reference in New Issue
Block a user