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 var a = {x:13, y:14}; |
| 14 function f() { |
| 15 return delete a.x; |
| 16 }; |
| 17 f(); |
| 18 " |
| 19 frame size: 1 |
| 20 parameter count: 1 |
| 21 bytecode array length: 11 |
| 22 bytecodes: [ |
| 23 B(StackCheck), |
| 24 B(LdaGlobal), U8(0), U8(1), |
| 25 B(Star), R(0), |
| 26 B(LdaConstant), U8(1), |
| 27 B(DeletePropertySloppy), R(0), |
| 28 B(Return), |
| 29 ] |
| 30 constant pool: [ |
| 31 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 32 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 33 ] |
| 34 handlers: [ |
| 35 ] |
| 36 |
| 37 --- |
| 38 snippet: " |
| 39 a = {1:13, 2:14}; |
| 40 function f() { |
| 41 'use strict'; |
| 42 return delete a[1]; |
| 43 }; |
| 44 f(); |
| 45 " |
| 46 frame size: 1 |
| 47 parameter count: 1 |
| 48 bytecode array length: 11 |
| 49 bytecodes: [ |
| 50 B(StackCheck), |
| 51 B(LdaGlobal), U8(0), U8(1), |
| 52 B(Star), R(0), |
| 53 B(LdaSmi8), U8(1), |
| 54 B(DeletePropertyStrict), R(0), |
| 55 B(Return), |
| 56 ] |
| 57 constant pool: [ |
| 58 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 59 ] |
| 60 handlers: [ |
| 61 ] |
| 62 |
| 63 --- |
| 64 snippet: " |
| 65 var a = {x:13, y:14}; |
| 66 function f() { |
| 67 return delete a; |
| 68 }; |
| 69 f(); |
| 70 " |
| 71 frame size: 2 |
| 72 parameter count: 1 |
| 73 bytecode array length: 16 |
| 74 bytecodes: [ |
| 75 B(StackCheck), |
| 76 B(LdaContextSlot), R(context), U8(3), |
| 77 B(Star), R(0), |
| 78 B(LdaContextSlot), R(0), U8(2), |
| 79 B(Star), R(1), |
| 80 B(LdaConstant), U8(0), |
| 81 B(DeletePropertySloppy), R(1), |
| 82 B(Return), |
| 83 ] |
| 84 constant pool: [ |
| 85 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 86 ] |
| 87 handlers: [ |
| 88 ] |
| 89 |
| 90 --- |
| 91 snippet: " |
| 92 b = 30; |
| 93 function f() { |
| 94 return delete b; |
| 95 }; |
| 96 f(); |
| 97 " |
| 98 frame size: 2 |
| 99 parameter count: 1 |
| 100 bytecode array length: 16 |
| 101 bytecodes: [ |
| 102 B(StackCheck), |
| 103 B(LdaContextSlot), R(context), U8(3), |
| 104 B(Star), R(0), |
| 105 B(LdaContextSlot), R(0), U8(2), |
| 106 B(Star), R(1), |
| 107 B(LdaConstant), U8(0), |
| 108 B(DeletePropertySloppy), R(1), |
| 109 B(Return), |
| 110 ] |
| 111 constant pool: [ |
| 112 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 113 ] |
| 114 handlers: [ |
| 115 ] |
| 116 |
OLD | NEW |