| 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 /* 42 E> */ B(Star), R(0), | 20 /* 42 E> */ 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 /* 47 E> */ B(Mov), R(0), R(1), |
| 24 /* 47 E> */ B(Star), R(0), | 24 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 /* 42 E> */ B(Star), R(0), | 43 /* 42 E> */ 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 /* 47 E> */ B(Mov), R(0), R(1), |
| 47 /* 47 E> */ B(Star), R(0), | 47 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: 27 | 62 bytecode array length: 25 |
| 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 /* 42 E> */ B(Star), R(0), | 67 /* 42 E> */ B(Star), R(0), |
| 68 /* 54 S> */ B(Star), R(1), | 68 /* 54 S> */ B(LoadIC), R(0), U8(1), U8(1), |
| 69 B(LoadIC), R(1), U8(1), U8(1), | |
| 70 B(Star), R(2), | 69 B(Star), R(2), |
| 71 B(LdaSmi), U8(2), | 70 B(LdaSmi), U8(2), |
| 72 B(Mul), R(2), | 71 B(Mul), R(2), |
| 73 /* 61 E> */ B(StoreICSloppy), R(1), U8(1), U8(3), | 72 /* 61 E> */ B(StoreICSloppy), R(0), U8(1), U8(3), |
| 74 B(LdaUndefined), | 73 B(LdaUndefined), |
| 75 /* 67 S> */ B(Return), | 74 /* 67 S> */ B(Return), |
| 76 ] | 75 ] |
| 77 constant pool: [ | 76 constant pool: [ |
| 78 InstanceType::FIXED_ARRAY_TYPE, | 77 InstanceType::FIXED_ARRAY_TYPE, |
| 79 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 78 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 80 ] | 79 ] |
| 81 handlers: [ | 80 handlers: [ |
| 82 ] | 81 ] |
| 83 | 82 |
| 84 --- | 83 --- |
| 85 snippet: " | 84 snippet: " |
| 86 var a = { 1: 2 }; a[1] ^= 2; | 85 var a = { 1: 2 }; a[1] ^= 2; |
| 87 " | 86 " |
| 88 frame size: 4 | 87 frame size: 4 |
| 89 parameter count: 1 | 88 parameter count: 1 |
| 90 bytecode array length: 30 | 89 bytecode array length: 28 |
| 91 bytecodes: [ | 90 bytecodes: [ |
| 92 /* 30 E> */ B(StackCheck), | 91 /* 30 E> */ B(StackCheck), |
| 93 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), | 92 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
| 94 B(Star), R(1), | 93 B(Star), R(1), |
| 95 /* 42 E> */ B(Star), R(0), | 94 /* 42 E> */ B(Star), R(0), |
| 96 /* 52 S> */ B(Star), R(1), | 95 /* 52 S> */ B(LdaSmi), U8(1), |
| 97 B(LdaSmi), U8(1), | |
| 98 B(Star), R(2), | 96 B(Star), R(2), |
| 99 B(KeyedLoadIC), R(1), U8(1), | 97 B(KeyedLoadIC), R(0), U8(1), |
| 100 B(Star), R(3), | 98 B(Star), R(3), |
| 101 B(LdaSmi), U8(2), | 99 B(LdaSmi), U8(2), |
| 102 B(BitwiseXor), R(3), | 100 B(BitwiseXor), R(3), |
| 103 /* 57 E> */ B(KeyedStoreICSloppy), R(1), R(2), U8(3), | 101 /* 57 E> */ B(KeyedStoreICSloppy), R(0), R(2), U8(3), |
| 104 B(LdaUndefined), | 102 B(LdaUndefined), |
| 105 /* 63 S> */ B(Return), | 103 /* 63 S> */ B(Return), |
| 106 ] | 104 ] |
| 107 constant pool: [ | 105 constant pool: [ |
| 108 InstanceType::FIXED_ARRAY_TYPE, | 106 InstanceType::FIXED_ARRAY_TYPE, |
| 109 ] | 107 ] |
| 110 handlers: [ | 108 handlers: [ |
| 111 ] | 109 ] |
| 112 | 110 |
| 113 --- | 111 --- |
| (...skipping 17 matching lines...) Expand all Loading... |
| 131 /* 77 E> */ B(StaContextSlot), R(context), U8(4), | 129 /* 77 E> */ B(StaContextSlot), R(context), U8(4), |
| 132 B(LdaUndefined), | 130 B(LdaUndefined), |
| 133 /* 84 S> */ B(Return), | 131 /* 84 S> */ B(Return), |
| 134 ] | 132 ] |
| 135 constant pool: [ | 133 constant pool: [ |
| 136 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 134 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 137 ] | 135 ] |
| 138 handlers: [ | 136 handlers: [ |
| 139 ] | 137 ] |
| 140 | 138 |
| OLD | NEW |