Lines Matching refs:jumps
53 let jumps = insns.filter(item => item instanceof Jmp); variable
55 expect(jumps.length).to.equal(1);
57 let jmpLabel = (<Jmp>jumps[0]).getTarget();
65 let jumps = insns.filter(item => item instanceof Jmp); variable
67 expect(jumps.length).to.equal(1);
69 let jmpLabel = (<Jmp>jumps[0]).getTarget();
71 expect(insns[4]).to.equal(jumps[0]);
77 let jumps = insns.filter(item => (item instanceof Jmp || item instanceof Jeqz)); variable
79 expect(jumps.length).to.equal(2);
81 let jgezLabel = (<Jmp>jumps[0]).getTarget();
82 let jmpLabel = (<Jmp>jumps[1]).getTarget();
87 expect(insns[7]).to.equal(jumps[0]);
88 expect(insns[9]).to.equal(jumps[1]);
93 let jumps = insns.filter(item => (item instanceof Jmp || item instanceof Jeqz)); variable
95 expect(jumps.length).to.equal(2);
97 let jgezLabel = (<Jmp>jumps[0]).getTarget();
98 let jmpLabel = (<Jmp>jumps[1]).getTarget();
103 expect(insns[7]).to.equal(jumps[0]);
104 expect(insns[16]).to.equal(jumps[1]);