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: number | 6 pool type: number |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var a = 1; if (a || a < 0) { return 1; } | 12 var a = 1; if (a || a < 0) { return 1; } |
13 " | 13 " |
14 frame size: 1 | 14 frame size: 1 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 17 | 16 bytecode array length: 17 |
17 bytecodes: [ | 17 bytecodes: [ |
18 /* 30 E> */ B(StackCheck), | 18 /* 30 E> */ B(StackCheck), |
19 /* 42 S> */ B(LdaSmi), U8(1), | 19 /* 42 S> */ B(LdaSmi), U8(1), |
20 B(Star), R(0), | 20 B(Star), R(0), |
21 /* 45 S> */ B(JumpIfToBooleanTrue), U8(5), | 21 /* 45 S> */ B(JumpIfToBooleanTrue), U8(5), |
22 /* 54 E> */ B(LdaZero), | 22 B(LdaZero), |
23 /* 56 E> */ B(TestLessThan), R(0), | 23 /* 56 E> */ B(TestLessThan), R(0), |
24 B(JumpIfToBooleanFalse), U8(5), | 24 B(JumpIfToBooleanFalse), U8(5), |
25 /* 63 S> */ B(LdaSmi), U8(1), | 25 /* 63 S> */ B(LdaSmi), U8(1), |
26 /* 75 S> */ B(Return), | 26 /* 75 S> */ B(Return), |
27 B(LdaUndefined), | 27 B(LdaUndefined), |
28 /* 75 S> */ B(Return), | 28 /* 75 S> */ B(Return), |
29 ] | 29 ] |
30 constant pool: [ | 30 constant pool: [ |
31 ] | 31 ] |
32 handlers: [ | 32 handlers: [ |
33 ] | 33 ] |
34 | 34 |
35 --- | 35 --- |
36 snippet: " | 36 snippet: " |
37 var a = 1; if (a && a < 0) { return 1; } | 37 var a = 1; if (a && a < 0) { return 1; } |
38 " | 38 " |
39 frame size: 1 | 39 frame size: 1 |
40 parameter count: 1 | 40 parameter count: 1 |
41 bytecode array length: 17 | 41 bytecode array length: 17 |
42 bytecodes: [ | 42 bytecodes: [ |
43 /* 30 E> */ B(StackCheck), | 43 /* 30 E> */ B(StackCheck), |
44 /* 42 S> */ B(LdaSmi), U8(1), | 44 /* 42 S> */ B(LdaSmi), U8(1), |
45 B(Star), R(0), | 45 B(Star), R(0), |
46 /* 45 S> */ B(JumpIfToBooleanFalse), U8(5), | 46 /* 45 S> */ B(JumpIfToBooleanFalse), U8(5), |
47 /* 54 E> */ B(LdaZero), | 47 B(LdaZero), |
48 /* 56 E> */ B(TestLessThan), R(0), | 48 /* 56 E> */ B(TestLessThan), R(0), |
49 B(JumpIfToBooleanFalse), U8(5), | 49 B(JumpIfToBooleanFalse), U8(5), |
50 /* 63 S> */ B(LdaSmi), U8(1), | 50 /* 63 S> */ B(LdaSmi), U8(1), |
51 /* 75 S> */ B(Return), | 51 /* 75 S> */ B(Return), |
52 B(LdaUndefined), | 52 B(LdaUndefined), |
53 /* 75 S> */ B(Return), | 53 /* 75 S> */ B(Return), |
54 ] | 54 ] |
55 constant pool: [ | 55 constant pool: [ |
56 ] | 56 ] |
57 handlers: [ | 57 handlers: [ |
58 ] | 58 ] |
59 | 59 |
60 --- | 60 --- |
61 snippet: " | 61 snippet: " |
62 var a = 1; a = (a || a < 0) ? 2 : 3; | 62 var a = 1; a = (a || a < 0) ? 2 : 3; |
63 " | 63 " |
64 frame size: 1 | 64 frame size: 1 |
65 parameter count: 1 | 65 parameter count: 1 |
66 bytecode array length: 22 | 66 bytecode array length: 22 |
67 bytecodes: [ | 67 bytecodes: [ |
68 /* 30 E> */ B(StackCheck), | 68 /* 30 E> */ B(StackCheck), |
69 /* 42 S> */ B(LdaSmi), U8(1), | 69 /* 42 S> */ B(LdaSmi), U8(1), |
70 B(Star), R(0), | 70 B(Star), R(0), |
71 /* 45 S> */ B(JumpIfToBooleanTrue), U8(5), | 71 /* 45 S> */ B(JumpIfToBooleanTrue), U8(5), |
72 /* 55 E> */ B(LdaZero), | 72 B(LdaZero), |
73 /* 57 E> */ B(TestLessThan), R(0), | 73 /* 57 E> */ B(TestLessThan), R(0), |
74 B(JumpIfToBooleanFalse), U8(6), | 74 B(JumpIfToBooleanFalse), U8(6), |
75 B(LdaSmi), U8(2), | 75 B(LdaSmi), U8(2), |
76 B(Jump), U8(4), | 76 B(Jump), U8(4), |
77 B(LdaSmi), U8(3), | 77 B(LdaSmi), U8(3), |
78 /* 47 E> */ B(Star), R(0), | 78 B(Star), R(0), |
79 B(LdaUndefined), | 79 B(LdaUndefined), |
80 /* 71 S> */ B(Return), | 80 /* 71 S> */ B(Return), |
81 ] | 81 ] |
82 constant pool: [ | 82 constant pool: [ |
83 ] | 83 ] |
84 handlers: [ | 84 handlers: [ |
85 ] | 85 ] |
86 | 86 |
OLD | NEW |