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