OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 execute: yes | 6 execute: yes |
7 wrap: yes | 7 wrap: yes |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 var x = 0; | 11 var x = 0; |
12 while (x != 10) { | 12 while (x != 10) { |
13 x = x + 10; | 13 x = x + 10; |
14 } | 14 } |
15 return x; | 15 return x; |
16 " | 16 " |
17 frame size: 1 | 17 frame size: 1 |
18 parameter count: 1 | 18 parameter count: 1 |
19 bytecode array length: 23 | 19 bytecode array length: 24 |
20 bytecodes: [ | 20 bytecodes: [ |
21 /* 30 E> */ B(StackCheck), | 21 /* 30 E> */ B(StackCheck), |
22 /* 42 S> */ B(LdaZero), | 22 /* 42 S> */ B(LdaZero), |
23 B(Star), R(0), | 23 B(Star), R(0), |
24 /* 54 S> */ B(LdaSmi), U8(10), | 24 /* 54 S> */ B(LdaSmi), U8(10), |
25 /* 54 E> */ B(TestEqual), R(0), U8(1), | 25 /* 54 E> */ B(TestEqual), R(0), U8(1), |
26 B(JumpIfTrue), U8(11), | 26 B(JumpIfTrue), U8(12), |
27 /* 45 E> */ B(StackCheck), | 27 /* 45 E> */ B(StackCheck), |
28 /* 65 S> */ B(AddSmi), U8(10), R(0), U8(2), | 28 /* 65 S> */ B(AddSmi), U8(10), R(0), U8(2), |
29 B(Star), R(0), | 29 B(Star), R(0), |
30 B(Jump), U8(-14), | 30 B(JumpLoop), U8(-14), U8(0), |
31 /* 79 S> */ B(Ldar), R(0), | 31 /* 79 S> */ B(Ldar), R(0), |
32 /* 89 S> */ B(Return), | 32 /* 89 S> */ B(Return), |
33 ] | 33 ] |
34 constant pool: [ | 34 constant pool: [ |
35 ] | 35 ] |
36 handlers: [ | 36 handlers: [ |
37 ] | 37 ] |
38 | 38 |
39 --- | 39 --- |
40 snippet: " | 40 snippet: " |
41 var x = false; | 41 var x = false; |
42 do { | 42 do { |
43 x = !x; | 43 x = !x; |
44 } while(x == false); | 44 } while(x == false); |
45 return x; | 45 return x; |
46 " | 46 " |
47 frame size: 1 | 47 frame size: 1 |
48 parameter count: 1 | 48 parameter count: 1 |
49 bytecode array length: 19 | 49 bytecode array length: 22 |
50 bytecodes: [ | 50 bytecodes: [ |
51 /* 30 E> */ B(StackCheck), | 51 /* 30 E> */ B(StackCheck), |
52 /* 42 S> */ B(LdaFalse), | 52 /* 42 S> */ B(LdaFalse), |
53 B(Star), R(0), | 53 B(Star), R(0), |
54 /* 49 E> */ B(StackCheck), | 54 /* 49 E> */ B(StackCheck), |
55 /* 56 S> */ B(Ldar), R(0), | 55 /* 56 S> */ B(Ldar), R(0), |
56 B(ToBooleanLogicalNot), | 56 B(ToBooleanLogicalNot), |
57 B(Star), R(0), | 57 B(Star), R(0), |
58 /* 74 S> */ B(LdaFalse), | 58 /* 74 S> */ B(LdaFalse), |
59 /* 74 E> */ B(TestEqual), R(0), U8(1), | 59 /* 74 E> */ B(TestEqual), R(0), U8(1), |
60 B(JumpIfTrue), U8(-10), | 60 B(JumpIfFalse), U8(5), |
| 61 B(JumpLoop), U8(-12), U8(0), |
61 /* 85 S> */ B(Ldar), R(0), | 62 /* 85 S> */ B(Ldar), R(0), |
62 /* 95 S> */ B(Return), | 63 /* 95 S> */ B(Return), |
63 ] | 64 ] |
64 constant pool: [ | 65 constant pool: [ |
65 ] | 66 ] |
66 handlers: [ | 67 handlers: [ |
67 ] | 68 ] |
68 | 69 |
69 --- | 70 --- |
70 snippet: " | 71 snippet: " |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 B(Star), R(0), | 172 B(Star), R(0), |
172 /* 46 S> */ B(LdaSmi), U8(-1), | 173 /* 46 S> */ B(LdaSmi), U8(-1), |
173 B(Mul), R(0), U8(1), | 174 B(Mul), R(0), U8(1), |
174 /* 57 S> */ B(Return), | 175 /* 57 S> */ B(Return), |
175 ] | 176 ] |
176 constant pool: [ | 177 constant pool: [ |
177 ] | 178 ] |
178 handlers: [ | 179 handlers: [ |
179 ] | 180 ] |
180 | 181 |
OLD | NEW |