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