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 var f; |
| 14 var x = 1; |
| 15 z = 10; |
| 16 function f1() { |
| 17 var y; |
| 18 eval(\"function t() { delete x; }; f = t; f();\"); |
| 19 } |
| 20 f1(); |
| 21 " |
| 22 frame size: 1 |
| 23 parameter count: 1 |
| 24 bytecode array length: 12 |
| 25 bytecodes: [ |
| 26 B(StackCheck), |
| 27 B(LdaConstant), U8(0), |
| 28 B(Star), R(0), |
| 29 B(CallRuntime), U16(Runtime::kDeleteLookupSlot), R(0), U8(1), |
| 30 B(LdaUndefined), |
| 31 B(Return), |
| 32 ] |
| 33 constant pool: [ |
| 34 "x", |
| 35 ] |
| 36 handlers: [ |
| 37 ] |
| 38 |
| 39 --- |
| 40 snippet: " |
| 41 var f; |
| 42 var x = 1; |
| 43 z = 10; |
| 44 function f1() { |
| 45 var y; |
| 46 eval(\"function t() { return delete y; }; f = t; f();\"); |
| 47 } |
| 48 f1(); |
| 49 " |
| 50 frame size: 0 |
| 51 parameter count: 1 |
| 52 bytecode array length: 3 |
| 53 bytecodes: [ |
| 54 B(StackCheck), |
| 55 B(LdaFalse), |
| 56 B(Return), |
| 57 ] |
| 58 constant pool: [ |
| 59 ] |
| 60 handlers: [ |
| 61 ] |
| 62 |
| 63 --- |
| 64 snippet: " |
| 65 var f; |
| 66 var x = 1; |
| 67 z = 10; |
| 68 function f1() { |
| 69 var y; |
| 70 eval(\"function t() { return delete z; }; f = t; f();\"); |
| 71 } |
| 72 f1(); |
| 73 " |
| 74 frame size: 1 |
| 75 parameter count: 1 |
| 76 bytecode array length: 11 |
| 77 bytecodes: [ |
| 78 B(StackCheck), |
| 79 B(LdaConstant), U8(0), |
| 80 B(Star), R(0), |
| 81 B(CallRuntime), U16(Runtime::kDeleteLookupSlot), R(0), U8(1), |
| 82 B(Return), |
| 83 ] |
| 84 constant pool: [ |
| 85 "z", |
| 86 ] |
| 87 handlers: [ |
| 88 ] |
| 89 |
OLD | NEW |