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 /* 42 E> */ 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: 12 |
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 /* 55 E> */ 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(Star), R(2), |
| 44 /* 63 S> */ B(Nop), |
43 /* 73 S> */ B(Return), | 45 /* 73 S> */ B(Return), |
44 ] | 46 ] |
45 constant pool: [ | 47 constant pool: [ |
46 ] | 48 ] |
47 handlers: [ | 49 handlers: [ |
48 ] | 50 ] |
49 | 51 |
50 --- | 52 --- |
51 snippet: " | 53 snippet: " |
52 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } | 54 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } |
(...skipping 16 matching lines...) Expand all Loading... |
69 /* 86 E> */ B(Star), R(1), | 71 /* 86 E> */ B(Star), R(1), |
70 B(Jump), U8(-20), | 72 B(Jump), U8(-20), |
71 B(LdaUndefined), | 73 B(LdaUndefined), |
72 /* 94 S> */ B(Return), | 74 /* 94 S> */ B(Return), |
73 ] | 75 ] |
74 constant pool: [ | 76 constant pool: [ |
75 ] | 77 ] |
76 handlers: [ | 78 handlers: [ |
77 ] | 79 ] |
78 | 80 |
OLD | NEW |