Refactoring cleaning

This commit is contained in:
Sergey Pepyakin 2019-04-05 18:48:45 +02:00
parent 382d68d4b4
commit a4b7140c0e
2 changed files with 563 additions and 592 deletions

File diff suppressed because it is too large Load Diff

View File

@ -832,17 +832,10 @@ fn spec_as_br_if_value_cond() {
assert_eq!(
code,
vec![
I32Const(
6
),
I32Const(
9
),
I32Const(
0
),
isa::Instruction::BrTable(
targets![
I32Const(6),
I32Const(9),
I32Const(0),
isa::Instruction::BrTable(targets![
isa::Target {
dst_pc: 9,
drop_keep: isa::DropKeep {
@ -857,29 +850,22 @@ fn spec_as_br_if_value_cond() {
keep: isa::Keep::Single
}
}
]
),
BrIfNez(
isa::Target {
]),
BrIfNez(isa::Target {
dst_pc: 9,
drop_keep: isa::DropKeep {
drop: 0,
keep: isa::Keep::Single
}
}
),
Drop,
I32Const(
7
),
Return(
isa::DropKeep {
}),
Drop,
I32Const(7),
Return(isa::DropKeep {
drop: 0,
keep: isa::Keep::Single
}
)
]);
})
]
);
}
#[test]