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