OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 do expressions: yes | 9 do expressions: yes |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var a = do { }; return a; | 13 var a = do { }; return a; |
14 " | 14 " |
15 frame size: 2 | 15 frame size: 2 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 6 | 17 bytecode array length: 7 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 30 E> */ B(StackCheck), | 19 /* 30 E> */ B(StackCheck), |
20 /* 42 S> */ B(Ldar), R(0), | 20 /* 42 S> */ B(Ldar), R(0), |
21 /* 42 E> */ B(Star), R(1), | 21 B(Star), R(1), |
| 22 /* 50 S> */ B(Nop), |
22 /* 60 S> */ B(Return), | 23 /* 60 S> */ B(Return), |
23 ] | 24 ] |
24 constant pool: [ | 25 constant pool: [ |
25 ] | 26 ] |
26 handlers: [ | 27 handlers: [ |
27 ] | 28 ] |
28 | 29 |
29 --- | 30 --- |
30 snippet: " | 31 snippet: " |
31 var a = do { var x = 100; }; return a; | 32 var a = do { var x = 100; }; return a; |
32 " | 33 " |
33 frame size: 3 | 34 frame size: 3 |
34 parameter count: 1 | 35 parameter count: 1 |
35 bytecode array length: 11 | 36 bytecode array length: 13 |
36 bytecodes: [ | 37 bytecodes: [ |
37 /* 30 E> */ B(StackCheck), | 38 /* 30 E> */ B(StackCheck), |
38 /* 55 S> */ B(LdaSmi), U8(100), | 39 /* 55 S> */ B(LdaSmi), U8(100), |
39 /* 55 E> */ B(Star), R(1), | 40 B(Star), R(1), |
40 /* 42 S> */ B(LdaUndefined), | 41 /* 42 S> */ B(LdaUndefined), |
41 B(Star), R(0), | 42 B(Star), R(0), |
42 /* 42 E> */ B(Star), R(2), | 43 /* 42 E> */ B(Nop), |
| 44 B(Star), R(2), |
| 45 /* 63 S> */ B(Nop), |
43 /* 73 S> */ B(Return), | 46 /* 73 S> */ B(Return), |
44 ] | 47 ] |
45 constant pool: [ | 48 constant pool: [ |
46 ] | 49 ] |
47 handlers: [ | 50 handlers: [ |
48 ] | 51 ] |
49 | 52 |
50 --- | 53 --- |
51 snippet: " | 54 snippet: " |
52 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } | 55 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } |
53 " | 56 " |
54 frame size: 2 | 57 frame size: 2 |
55 parameter count: 1 | 58 parameter count: 1 |
56 bytecode array length: 25 | 59 bytecode array length: 25 |
57 bytecodes: [ | 60 bytecodes: [ |
58 /* 30 E> */ B(StackCheck), | 61 /* 30 E> */ B(StackCheck), |
59 /* 34 E> */ B(StackCheck), | 62 /* 34 E> */ B(StackCheck), |
60 /* 56 S> */ B(LdaSmi), U8(10), | 63 /* 56 S> */ B(LdaSmi), U8(10), |
61 /* 56 E> */ B(Star), R(1), | 64 B(Star), R(1), |
62 /* 69 S> */ B(Inc), | 65 /* 69 S> */ B(Inc), |
63 /* 71 E> */ B(Star), R(1), | 66 /* 71 E> */ B(Star), R(1), |
64 B(Star), R(0), | 67 B(Star), R(0), |
65 /* 74 S> */ B(Jump), U8(12), | 68 /* 74 S> */ B(Jump), U8(12), |
66 /* 64 E> */ B(Ldar), R(0), | 69 /* 64 E> */ B(Ldar), R(0), |
67 /* 62 E> */ B(Star), R(1), | 70 B(Star), R(1), |
68 /* 84 S> */ B(LdaSmi), U8(20), | 71 /* 84 S> */ B(LdaSmi), U8(20), |
69 /* 86 E> */ B(Star), R(1), | 72 /* 86 E> */ B(Star), R(1), |
70 B(Jump), U8(-20), | 73 B(Jump), U8(-20), |
71 B(LdaUndefined), | 74 B(LdaUndefined), |
72 /* 94 S> */ B(Return), | 75 /* 94 S> */ B(Return), |
73 ] | 76 ] |
74 constant pool: [ | 77 constant pool: [ |
75 ] | 78 ] |
76 handlers: [ | 79 handlers: [ |
77 ] | 80 ] |
78 | 81 |
OLD | NEW |