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 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 return; var a = 1; a(); | 10 return; var a = 1; a(); |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 --- | 25 --- |
26 snippet: " | 26 snippet: " |
27 if (false) { return; }; var a = 1; | 27 if (false) { return; }; var a = 1; |
28 " | 28 " |
29 frame size: 1 | 29 frame size: 1 |
30 parameter count: 1 | 30 parameter count: 1 |
31 bytecode array length: 7 | 31 bytecode array length: 7 |
32 bytecodes: [ | 32 bytecodes: [ |
33 /* 30 E> */ B(StackCheck), | 33 /* 30 E> */ B(StackCheck), |
34 /* 66 S> */ B(LdaSmi), U8(1), | 34 /* 66 S> */ B(LdaSmi), I8(1), |
35 B(Star), R(0), | 35 B(Star), R(0), |
36 B(LdaUndefined), | 36 B(LdaUndefined), |
37 /* 69 S> */ B(Return), | 37 /* 69 S> */ B(Return), |
38 ] | 38 ] |
39 constant pool: [ | 39 constant pool: [ |
40 ] | 40 ] |
41 handlers: [ | 41 handlers: [ |
42 ] | 42 ] |
43 | 43 |
44 --- | 44 --- |
45 snippet: " | 45 snippet: " |
46 if (true) { return 1; } else { return 2; }; | 46 if (true) { return 1; } else { return 2; }; |
47 " | 47 " |
48 frame size: 0 | 48 frame size: 0 |
49 parameter count: 1 | 49 parameter count: 1 |
50 bytecode array length: 4 | 50 bytecode array length: 4 |
51 bytecodes: [ | 51 bytecodes: [ |
52 /* 30 E> */ B(StackCheck), | 52 /* 30 E> */ B(StackCheck), |
53 /* 46 S> */ B(LdaSmi), U8(1), | 53 /* 46 S> */ B(LdaSmi), I8(1), |
54 /* 78 S> */ B(Return), | 54 /* 78 S> */ B(Return), |
55 ] | 55 ] |
56 constant pool: [ | 56 constant pool: [ |
57 ] | 57 ] |
58 handlers: [ | 58 handlers: [ |
59 ] | 59 ] |
60 | 60 |
61 --- | 61 --- |
62 snippet: " | 62 snippet: " |
63 var a = 1; if (a) { return 1; }; return 2; | 63 var a = 1; if (a) { return 1; }; return 2; |
64 " | 64 " |
65 frame size: 1 | 65 frame size: 1 |
66 parameter count: 1 | 66 parameter count: 1 |
67 bytecode array length: 13 | 67 bytecode array length: 13 |
68 bytecodes: [ | 68 bytecodes: [ |
69 /* 30 E> */ B(StackCheck), | 69 /* 30 E> */ B(StackCheck), |
70 /* 42 S> */ B(LdaSmi), U8(1), | 70 /* 42 S> */ B(LdaSmi), I8(1), |
71 B(Star), R(0), | 71 B(Star), R(0), |
72 /* 45 S> */ B(JumpIfToBooleanFalse), U8(5), | 72 /* 45 S> */ B(JumpIfToBooleanFalse), U8(5), |
73 /* 54 S> */ B(LdaSmi), U8(1), | 73 /* 54 S> */ B(LdaSmi), I8(1), |
74 /* 77 S> */ B(Return), | 74 /* 77 S> */ B(Return), |
75 /* 67 S> */ B(LdaSmi), U8(2), | 75 /* 67 S> */ B(LdaSmi), I8(2), |
76 /* 77 S> */ B(Return), | 76 /* 77 S> */ B(Return), |
77 ] | 77 ] |
78 constant pool: [ | 78 constant pool: [ |
79 ] | 79 ] |
80 handlers: [ | 80 handlers: [ |
81 ] | 81 ] |
82 | 82 |
OLD | NEW |