1 # 2 # Autogenerated by generate-bytecode-expectations. 3 # 4 5 --- 6 pool type: number 7 execute: yes 8 wrap: yes 9 10 --- 11 snippet: " 12 var ld_a = 1; 13 while(true) { 14 ld_a = ld_a + ld_a; 15 if (ld_a > 10) break; 16 } 17 return ld_a; 18 " 19 frame size: 1 20 parameter count: 1 21 bytecode array length: 25 22 bytecodes: [ 23 /* 30 E> */ B(StackCheck), 24 /* 45 S> */ B(LdaSmi), U8(1), 25 B(Star), R(0), 26 /* 48 E> */ B(StackCheck), 27 /* 64 S> */ B(Ldar), R(0), 28 /* 78 E> */ B(Add), R(0), 29 B(Star), R(0), 30 /* 86 S> */ B(LdaSmi), U8(10), 31 /* 95 E> */ B(TestGreaterThan), R(0), 32 B(JumpIfFalse), U8(4), 33 /* 101 S> */ B(Jump), U8(4), 34 B(Jump), U8(-15), 35 /* 110 S> */ B(Ldar), R(0), 36 /* 123 S> */ B(Return), 37 ] 38 constant pool: [ 39 ] 40 handlers: [ 41 ] 42 43 --- 44 snippet: " 45 var ld_a = 1; 46 do { 47 ld_a = ld_a + ld_a; 48 if (ld_a > 10) continue; 49 } while(false); 50 return ld_a; 51 " 52 frame size: 1 53 parameter count: 1 54 bytecode array length: 23 55 bytecodes: [ 56 /* 30 E> */ B(StackCheck), 57 /* 45 S> */ B(LdaSmi), U8(1), 58 B(Star), R(0), 59 /* 48 E> */ B(StackCheck), 60 /* 55 S> */ B(Ldar), R(0), 61 /* 69 E> */ B(Add), R(0), 62 B(Star), R(0), 63 /* 77 S> */ B(LdaSmi), U8(10), 64 /* 86 E> */ B(TestGreaterThan), R(0), 65 B(JumpIfFalse), U8(4), 66 /* 92 S> */ B(Jump), U8(2), 67 /* 118 S> */ B(Ldar), R(0), 68 /* 131 S> */ B(Return), 69 ] 70 constant pool: [ 71 ] 72 handlers: [ 73 ] 74 75 --- 76 snippet: " 77 var ld_a = 1; 78 ld_a = ld_a + ld_a; 79 return ld_a; 80 " 81 frame size: 1 82 parameter count: 1 83 bytecode array length: 12 84 bytecodes: [ 85 /* 30 E> */ B(StackCheck), 86 /* 45 S> */ B(LdaSmi), U8(1), 87 B(Star), R(0), 88 /* 50 S> */ B(Nop), 89 /* 64 E> */ B(Add), R(0), 90 B(Star), R(0), 91 /* 72 S> */ B(Nop), 92 /* 85 S> */ B(Return), 93 ] 94 constant pool: [ 95 ] 96 handlers: [ 97 ] 98 99