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