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(arg1) { return function() { arg1 = 2; }; } |
| 14 f(); |
| 15 " |
| 16 frame size: 1 # in multiples of sizeof(void*) |
| 17 parameter count: 2 |
| 18 bytecodes: [ |
| 19 B(CallRuntime), U16(461), R(closure), U8(1), |
| 20 B(PushContext), R(0), |
| 21 B(Ldar), R(arg0), |
| 22 B(StaContextSlot), R(context), U8(4), |
| 23 B(StackCheck), |
| 24 B(CreateClosure), U8(0), U8(0), |
| 25 B(Return), |
| 26 ] |
| 27 constant pool: [ |
| 28 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 29 ] |
| 30 handlers: [ |
| 31 ] |
| 32 |
| 33 --- |
| 34 snippet: " |
| 35 function f(arg1) { var a = function() { arg1 = 2; }; return arg1; } |
| 36 f(); |
| 37 " |
| 38 frame size: 2 # in multiples of sizeof(void*) |
| 39 parameter count: 2 |
| 40 bytecodes: [ |
| 41 B(CallRuntime), U16(461), R(closure), U8(1), |
| 42 B(PushContext), R(1), |
| 43 B(Ldar), R(arg0), |
| 44 B(StaContextSlot), R(context), U8(4), |
| 45 B(StackCheck), |
| 46 B(CreateClosure), U8(0), U8(0), |
| 47 B(Star), R(0), |
| 48 B(LdaContextSlot), R(context), U8(4), |
| 49 B(Return), |
| 50 ] |
| 51 constant pool: [ |
| 52 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 53 ] |
| 54 handlers: [ |
| 55 ] |
| 56 |
| 57 --- |
| 58 snippet: " |
| 59 function f(a1, a2, a3, a4) { return function() { a1 = a3; }; } |
| 60 f(); |
| 61 " |
| 62 frame size: 1 # in multiples of sizeof(void*) |
| 63 parameter count: 5 |
| 64 bytecodes: [ |
| 65 B(CallRuntime), U16(461), R(closure), U8(1), |
| 66 B(PushContext), R(0), |
| 67 B(Ldar), R(arg0), |
| 68 B(StaContextSlot), R(context), U8(5), |
| 69 B(Ldar), R(arg2), |
| 70 B(StaContextSlot), R(context), U8(4), |
| 71 B(StackCheck), |
| 72 B(CreateClosure), U8(0), U8(0), |
| 73 B(Return), |
| 74 ] |
| 75 constant pool: [ |
| 76 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 77 ] |
| 78 handlers: [ |
| 79 ] |
| 80 |
| 81 --- |
| 82 snippet: " |
| 83 function f() { var self = this; return function() { self = 2; }; } |
| 84 f(); |
| 85 " |
| 86 frame size: 1 # in multiples of sizeof(void*) |
| 87 parameter count: 1 |
| 88 bytecodes: [ |
| 89 B(CallRuntime), U16(461), R(closure), U8(1), |
| 90 B(PushContext), R(0), |
| 91 B(StackCheck), |
| 92 B(Ldar), R(this), |
| 93 B(StaContextSlot), R(context), U8(4), |
| 94 B(CreateClosure), U8(0), U8(0), |
| 95 B(Return), |
| 96 ] |
| 97 constant pool: [ |
| 98 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 99 ] |
| 100 handlers: [ |
| 101 ] |
| 102 |
OLD | NEW |