rustfmt
This commit is contained in:
@@ -5023,4 +5023,3 @@ impl IntoLabel for (LabelValue, LabelValue) {
|
|||||||
Box::new(const_values(self.0, self.1))
|
Box::new(const_values(self.0, self.1))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -313,8 +313,7 @@ where
|
|||||||
) {
|
) {
|
||||||
((Some(Left(ref cc)), to_drop), ref mut other @ (None, _))
|
((Some(Left(ref cc)), to_drop), ref mut other @ (None, _))
|
||||||
| (ref mut other @ (None, _), (Some(Left(ref cc)), to_drop)) => {
|
| (ref mut other @ (None, _), (Some(Left(ref cc)), to_drop)) => {
|
||||||
let mut cc =
|
let mut cc = ctx.serialize_block_args(cc, to_drop.clone());
|
||||||
ctx.serialize_block_args(cc, to_drop.clone());
|
|
||||||
if let Some(to_drop) = other.1 {
|
if let Some(to_drop) = other.1 {
|
||||||
drop_elements(&mut cc.arguments, to_drop.clone());
|
drop_elements(&mut cc.arguments, to_drop.clone());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ use std::{
|
|||||||
ops::RangeInclusive,
|
ops::RangeInclusive,
|
||||||
};
|
};
|
||||||
use wasmparser::{
|
use wasmparser::{
|
||||||
FunctionBody, Ieee32 as WasmIeee32, Ieee64 as WasmIeee64, MemoryImmediate as WasmMemoryImmediate, Operator as WasmOperator,
|
FunctionBody, Ieee32 as WasmIeee32, Ieee64 as WasmIeee64,
|
||||||
OperatorsReader,
|
MemoryImmediate as WasmMemoryImmediate, Operator as WasmOperator, OperatorsReader,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn dis<L>(
|
pub fn dis<L>(
|
||||||
@@ -1893,8 +1893,12 @@ where
|
|||||||
WasmOperator::MemoryGrow { reserved } => smallvec![Operator::MemoryGrow { reserved }],
|
WasmOperator::MemoryGrow { reserved } => smallvec![Operator::MemoryGrow { reserved }],
|
||||||
WasmOperator::I32Const { value } => smallvec![Operator::Const(Value::I32(value))],
|
WasmOperator::I32Const { value } => smallvec![Operator::Const(Value::I32(value))],
|
||||||
WasmOperator::I64Const { value } => smallvec![Operator::Const(Value::I64(value))],
|
WasmOperator::I64Const { value } => smallvec![Operator::Const(Value::I64(value))],
|
||||||
WasmOperator::F32Const { value } => smallvec![Operator::Const(Value::F32(value.into()))],
|
WasmOperator::F32Const { value } => {
|
||||||
WasmOperator::F64Const { value } => smallvec![Operator::Const(Value::F64(value.into()))],
|
smallvec![Operator::Const(Value::F32(value.into()))]
|
||||||
|
}
|
||||||
|
WasmOperator::F64Const { value } => {
|
||||||
|
smallvec![Operator::Const(Value::F64(value.into()))]
|
||||||
|
}
|
||||||
WasmOperator::RefNull => unimplemented!("{:?}", op),
|
WasmOperator::RefNull => unimplemented!("{:?}", op),
|
||||||
WasmOperator::RefIsNull => unimplemented!("{:?}", op),
|
WasmOperator::RefIsNull => unimplemented!("{:?}", op),
|
||||||
WasmOperator::I32Eqz => smallvec![Operator::Eqz(Size::_32)],
|
WasmOperator::I32Eqz => smallvec![Operator::Eqz(Size::_32)],
|
||||||
@@ -2170,4 +2174,3 @@ where
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user