OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations |
| 3 # |
| 4 |
| 5 --- |
| 6 pool type: string |
| 7 execute: yes |
| 8 wrap: no |
| 9 test function name: f |
| 10 |
| 11 --- |
| 12 snippet: " |
| 13 function f() { return arguments; } |
| 14 f(); |
| 15 " |
| 16 frame size: 1 # in multiples of sizeof(void*) |
| 17 parameter count: 1 |
| 18 bytecodes: [ |
| 19 B(CreateMappedArguments), |
| 20 B(Star), R(0), |
| 21 B(StackCheck), |
| 22 B(Ldar), R(0), |
| 23 B(Return), |
| 24 ] |
| 25 constant pool: [ |
| 26 ] |
| 27 handlers: [ |
| 28 ] |
| 29 |
| 30 --- |
| 31 snippet: " |
| 32 function f() { return arguments[0]; } |
| 33 f(); |
| 34 " |
| 35 frame size: 2 # in multiples of sizeof(void*) |
| 36 parameter count: 1 |
| 37 bytecodes: [ |
| 38 B(CreateMappedArguments), |
| 39 B(Star), R(0), |
| 40 B(StackCheck), |
| 41 B(Ldar), R(0), |
| 42 B(Star), R(1), |
| 43 B(LdaZero), |
| 44 B(KeyedLoadIC), R(1), U8(1), |
| 45 B(Return), |
| 46 ] |
| 47 constant pool: [ |
| 48 ] |
| 49 handlers: [ |
| 50 ] |
| 51 |
| 52 --- |
| 53 snippet: " |
| 54 function f() { 'use strict'; return arguments; } |
| 55 f(); |
| 56 " |
| 57 frame size: 1 # in multiples of sizeof(void*) |
| 58 parameter count: 1 |
| 59 bytecodes: [ |
| 60 B(CreateUnmappedArguments), |
| 61 B(Star), R(0), |
| 62 B(StackCheck), |
| 63 B(Ldar), R(0), |
| 64 B(Return), |
| 65 ] |
| 66 constant pool: [ |
| 67 ] |
| 68 handlers: [ |
| 69 ] |
| 70 |
| 71 --- |
| 72 snippet: " |
| 73 function f(a) { return arguments[0]; } |
| 74 f(); |
| 75 " |
| 76 frame size: 3 # in multiples of sizeof(void*) |
| 77 parameter count: 2 |
| 78 bytecodes: [ |
| 79 B(CallRuntime), U16(461), R(closure), U8(1), |
| 80 B(PushContext), R(1), |
| 81 B(Ldar), R(arg0), |
| 82 B(StaContextSlot), R(context), U8(4), |
| 83 B(CreateMappedArguments), |
| 84 B(Star), R(0), |
| 85 B(StackCheck), |
| 86 B(Ldar), R(0), |
| 87 B(Star), R(2), |
| 88 B(LdaZero), |
| 89 B(KeyedLoadIC), R(2), U8(1), |
| 90 B(Return), |
| 91 ] |
| 92 constant pool: [ |
| 93 ] |
| 94 handlers: [ |
| 95 ] |
| 96 |
| 97 --- |
| 98 snippet: " |
| 99 function f(a, b, c) { return arguments; } |
| 100 f(); |
| 101 " |
| 102 frame size: 2 # in multiples of sizeof(void*) |
| 103 parameter count: 4 |
| 104 bytecodes: [ |
| 105 B(CallRuntime), U16(461), R(closure), U8(1), |
| 106 B(PushContext), R(1), |
| 107 B(Ldar), R(arg0), |
| 108 B(StaContextSlot), R(context), U8(6), |
| 109 B(Ldar), R(arg1), |
| 110 B(StaContextSlot), R(context), U8(5), |
| 111 B(Ldar), R(arg2), |
| 112 B(StaContextSlot), R(context), U8(4), |
| 113 B(CreateMappedArguments), |
| 114 B(Star), R(0), |
| 115 B(StackCheck), |
| 116 B(Ldar), R(0), |
| 117 B(Return), |
| 118 ] |
| 119 constant pool: [ |
| 120 ] |
| 121 handlers: [ |
| 122 ] |
| 123 |
| 124 --- |
| 125 snippet: " |
| 126 function f(a, b, c) { 'use strict'; return arguments; } |
| 127 f(); |
| 128 " |
| 129 frame size: 1 # in multiples of sizeof(void*) |
| 130 parameter count: 4 |
| 131 bytecodes: [ |
| 132 B(CreateUnmappedArguments), |
| 133 B(Star), R(0), |
| 134 B(StackCheck), |
| 135 B(Ldar), R(0), |
| 136 B(Return), |
| 137 ] |
| 138 constant pool: [ |
| 139 ] |
| 140 handlers: [ |
| 141 ] |
| 142 |
OLD | NEW |