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