| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 pool type: mixed | 6 pool type: mixed |
| 7 execute: yes | 7 execute: yes |
| 8 wrap: yes | 8 wrap: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| 11 snippet: " | 11 snippet: " |
| 12 var a = 1; a += 2; | 12 var a = 1; a += 2; |
| 13 " | 13 " |
| 14 frame size: 2 | 14 frame size: 2 |
| 15 parameter count: 1 | 15 parameter count: 1 |
| 16 bytecode array length: 15 | 16 bytecode array length: 16 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 /* 30 E> */ B(StackCheck), | 18 /* 30 E> */ B(StackCheck), |
| 19 /* 42 S> */ B(LdaSmi), U8(1), | 19 /* 42 S> */ B(LdaSmi), U8(1), |
| 20 B(Star), R(0), | 20 B(Star), R(0), |
| 21 /* 45 S> */ B(Star), R(1), | 21 /* 45 S> */ B(LdaSmi), U8(2), |
| 22 B(LdaSmi), U8(2), | 22 B(Add), R(0), |
| 23 B(Add), R(1), | 23 B(Mov), R(0), R(1), |
| 24 /* 47 E> */ B(Star), R(0), | 24 /* 47 E> */ B(Star), R(0), |
| 25 B(LdaUndefined), | 25 B(LdaUndefined), |
| 26 /* 53 S> */ B(Return), | 26 /* 53 S> */ B(Return), |
| 27 ] | 27 ] |
| 28 constant pool: [ | 28 constant pool: [ |
| 29 ] | 29 ] |
| 30 handlers: [ | 30 handlers: [ |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 --- | 33 --- |
| 34 snippet: " | 34 snippet: " |
| 35 var a = 1; a /= 2; | 35 var a = 1; a /= 2; |
| 36 " | 36 " |
| 37 frame size: 2 | 37 frame size: 2 |
| 38 parameter count: 1 | 38 parameter count: 1 |
| 39 bytecode array length: 15 | 39 bytecode array length: 16 |
| 40 bytecodes: [ | 40 bytecodes: [ |
| 41 /* 30 E> */ B(StackCheck), | 41 /* 30 E> */ B(StackCheck), |
| 42 /* 42 S> */ B(LdaSmi), U8(1), | 42 /* 42 S> */ B(LdaSmi), U8(1), |
| 43 B(Star), R(0), | 43 B(Star), R(0), |
| 44 /* 45 S> */ B(Star), R(1), | 44 /* 45 S> */ B(LdaSmi), U8(2), |
| 45 B(LdaSmi), U8(2), | 45 B(Div), R(0), |
| 46 B(Div), R(1), | 46 B(Mov), R(0), R(1), |
| 47 /* 47 E> */ B(Star), R(0), | 47 /* 47 E> */ B(Star), R(0), |
| 48 B(LdaUndefined), | 48 B(LdaUndefined), |
| 49 /* 53 S> */ B(Return), | 49 /* 53 S> */ B(Return), |
| 50 ] | 50 ] |
| 51 constant pool: [ | 51 constant pool: [ |
| 52 ] | 52 ] |
| 53 handlers: [ | 53 handlers: [ |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 --- | 56 --- |
| 57 snippet: " | 57 snippet: " |
| 58 var a = { val: 2 }; a.name *= 2; | 58 var a = { val: 2 }; a.name *= 2; |
| 59 " | 59 " |
| 60 frame size: 3 | 60 frame size: 3 |
| 61 parameter count: 1 | 61 parameter count: 1 |
| 62 bytecode array length: 26 | 62 bytecode array length: 24 |
| 63 bytecodes: [ | 63 bytecodes: [ |
| 64 /* 30 E> */ B(StackCheck), | 64 /* 30 E> */ B(StackCheck), |
| 65 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 65 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
| 66 B(Star), R(1), | 66 B(Star), R(1), |
| 67 B(Star), R(0), | 67 B(Star), R(0), |
| 68 /* 54 S> */ B(Star), R(1), | 68 /* 54 S> */ B(LdrNamedProperty), R(0), U8(1), U8(1), R(2), |
| 69 B(LdrNamedProperty), R(1), U8(1), U8(1), R(2), | |
| 70 B(LdaSmi), U8(2), | 69 B(LdaSmi), U8(2), |
| 71 B(Mul), R(2), | 70 B(Mul), R(2), |
| 72 /* 61 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(3), | 71 /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), |
| 73 B(LdaUndefined), | 72 B(LdaUndefined), |
| 74 /* 67 S> */ B(Return), | 73 /* 67 S> */ B(Return), |
| 75 ] | 74 ] |
| 76 constant pool: [ | 75 constant pool: [ |
| 77 InstanceType::FIXED_ARRAY_TYPE, | 76 InstanceType::FIXED_ARRAY_TYPE, |
| 78 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 77 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 79 ] | 78 ] |
| 80 handlers: [ | 79 handlers: [ |
| 81 ] | 80 ] |
| 82 | 81 |
| 83 --- | 82 --- |
| 84 snippet: " | 83 snippet: " |
| 85 var a = { 1: 2 }; a[1] ^= 2; | 84 var a = { 1: 2 }; a[1] ^= 2; |
| 86 " | 85 " |
| 87 frame size: 4 | 86 frame size: 4 |
| 88 parameter count: 1 | 87 parameter count: 1 |
| 89 bytecode array length: 29 | 88 bytecode array length: 27 |
| 90 bytecodes: [ | 89 bytecodes: [ |
| 91 /* 30 E> */ B(StackCheck), | 90 /* 30 E> */ B(StackCheck), |
| 92 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 91 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
| 93 B(Star), R(1), | 92 B(Star), R(1), |
| 94 B(Star), R(0), | 93 B(Star), R(0), |
| 95 /* 52 S> */ B(Star), R(1), | 94 /* 52 S> */ B(LdaSmi), U8(1), |
| 96 B(LdaSmi), U8(1), | |
| 97 B(Star), R(2), | 95 B(Star), R(2), |
| 98 B(LdrKeyedProperty), R(1), U8(1), R(3), | 96 B(LdrKeyedProperty), R(0), U8(1), R(3), |
| 99 B(LdaSmi), U8(2), | 97 B(LdaSmi), U8(2), |
| 100 B(BitwiseXor), R(3), | 98 B(BitwiseXor), R(3), |
| 101 /* 57 E> */ B(StaKeyedPropertySloppy), R(1), R(2), U8(3), | 99 /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(3), |
| 102 B(LdaUndefined), | 100 B(LdaUndefined), |
| 103 /* 63 S> */ B(Return), | 101 /* 63 S> */ B(Return), |
| 104 ] | 102 ] |
| 105 constant pool: [ | 103 constant pool: [ |
| 106 InstanceType::FIXED_ARRAY_TYPE, | 104 InstanceType::FIXED_ARRAY_TYPE, |
| 107 ] | 105 ] |
| 108 handlers: [ | 106 handlers: [ |
| 109 ] | 107 ] |
| 110 | 108 |
| 111 --- | 109 --- |
| (...skipping 16 matching lines...) Expand all Loading... |
| 128 /* 77 E> */ B(StaContextSlot), R(context), U8(4), | 126 /* 77 E> */ B(StaContextSlot), R(context), U8(4), |
| 129 B(LdaUndefined), | 127 B(LdaUndefined), |
| 130 /* 84 S> */ B(Return), | 128 /* 84 S> */ B(Return), |
| 131 ] | 129 ] |
| 132 constant pool: [ | 130 constant pool: [ |
| 133 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 131 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 134 ] | 132 ] |
| 135 handlers: [ | 133 handlers: [ |
| 136 ] | 134 ] |
| 137 | 135 |
| OLD | NEW |