| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: yes | 6 wrap: yes |
| 7 | 7 |
| 8 --- | 8 --- |
| 9 snippet: " | 9 snippet: " |
| 10 var a = 1; a += 2; | 10 var a = 1; a += 2; |
| 11 " | 11 " |
| 12 frame size: 2 | 12 frame size: 2 |
| 13 parameter count: 1 | 13 parameter count: 1 |
| 14 bytecode array length: 16 | 14 bytecode array length: 16 |
| 15 bytecodes: [ | 15 bytecodes: [ |
| 16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
| 17 /* 42 S> */ B(LdaSmi), U8(1), | 17 /* 42 S> */ B(LdaSmi), I8(1), |
| 18 B(Star), R(0), | 18 B(Star), R(0), |
| 19 /* 45 S> */ B(AddSmi), U8(2), R(0), U8(2), | 19 /* 45 S> */ B(AddSmi), I8(2), R(0), U8(2), |
| 20 B(Mov), R(0), R(1), | 20 B(Mov), R(0), R(1), |
| 21 B(Star), R(0), | 21 B(Star), R(0), |
| 22 B(LdaUndefined), | 22 B(LdaUndefined), |
| 23 /* 53 S> */ B(Return), | 23 /* 53 S> */ B(Return), |
| 24 ] | 24 ] |
| 25 constant pool: [ | 25 constant pool: [ |
| 26 ] | 26 ] |
| 27 handlers: [ | 27 handlers: [ |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 --- | 30 --- |
| 31 snippet: " | 31 snippet: " |
| 32 var a = 1; a /= 2; | 32 var a = 1; a /= 2; |
| 33 " | 33 " |
| 34 frame size: 2 | 34 frame size: 2 |
| 35 parameter count: 1 | 35 parameter count: 1 |
| 36 bytecode array length: 17 | 36 bytecode array length: 17 |
| 37 bytecodes: [ | 37 bytecodes: [ |
| 38 /* 30 E> */ B(StackCheck), | 38 /* 30 E> */ B(StackCheck), |
| 39 /* 42 S> */ B(LdaSmi), U8(1), | 39 /* 42 S> */ B(LdaSmi), I8(1), |
| 40 B(Star), R(0), | 40 B(Star), R(0), |
| 41 /* 45 S> */ B(LdaSmi), U8(2), | 41 /* 45 S> */ B(LdaSmi), I8(2), |
| 42 B(Div), R(0), U8(2), | 42 B(Div), R(0), U8(2), |
| 43 B(Mov), R(0), R(1), | 43 B(Mov), R(0), R(1), |
| 44 B(Star), R(0), | 44 B(Star), R(0), |
| 45 B(LdaUndefined), | 45 B(LdaUndefined), |
| 46 /* 53 S> */ B(Return), | 46 /* 53 S> */ B(Return), |
| 47 ] | 47 ] |
| 48 constant pool: [ | 48 constant pool: [ |
| 49 ] | 49 ] |
| 50 handlers: [ | 50 handlers: [ |
| 51 ] | 51 ] |
| 52 | 52 |
| 53 --- | 53 --- |
| 54 snippet: " | 54 snippet: " |
| 55 var a = { val: 2 }; a.name *= 2; | 55 var a = { val: 2 }; a.name *= 2; |
| 56 " | 56 " |
| 57 frame size: 3 | 57 frame size: 3 |
| 58 parameter count: 1 | 58 parameter count: 1 |
| 59 bytecode array length: 26 | 59 bytecode array length: 26 |
| 60 bytecodes: [ | 60 bytecodes: [ |
| 61 /* 30 E> */ B(StackCheck), | 61 /* 30 E> */ B(StackCheck), |
| 62 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 62 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
| 63 B(Mov), R(1), R(0), | 63 B(Mov), R(1), R(0), |
| 64 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2), | 64 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2), |
| 65 B(Star), R(2), | 65 B(Star), R(2), |
| 66 B(LdaSmi), U8(2), | 66 B(LdaSmi), I8(2), |
| 67 B(Mul), R(2), U8(4), | 67 B(Mul), R(2), U8(4), |
| 68 /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5), | 68 /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5), |
| 69 B(LdaUndefined), | 69 B(LdaUndefined), |
| 70 /* 67 S> */ B(Return), | 70 /* 67 S> */ B(Return), |
| 71 ] | 71 ] |
| 72 constant pool: [ | 72 constant pool: [ |
| 73 FIXED_ARRAY_TYPE, | 73 FIXED_ARRAY_TYPE, |
| 74 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 74 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
| 75 ] | 75 ] |
| 76 handlers: [ | 76 handlers: [ |
| 77 ] | 77 ] |
| 78 | 78 |
| 79 --- | 79 --- |
| 80 snippet: " | 80 snippet: " |
| 81 var a = { 1: 2 }; a[1] ^= 2; | 81 var a = { 1: 2 }; a[1] ^= 2; |
| 82 " | 82 " |
| 83 frame size: 4 | 83 frame size: 4 |
| 84 parameter count: 1 | 84 parameter count: 1 |
| 85 bytecode array length: 29 | 85 bytecode array length: 29 |
| 86 bytecodes: [ | 86 bytecodes: [ |
| 87 /* 30 E> */ B(StackCheck), | 87 /* 30 E> */ B(StackCheck), |
| 88 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 88 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
| 89 B(Mov), R(1), R(0), | 89 B(Mov), R(1), R(0), |
| 90 /* 52 S> */ B(LdaSmi), U8(1), | 90 /* 52 S> */ B(LdaSmi), I8(1), |
| 91 B(Star), R(2), | 91 B(Star), R(2), |
| 92 B(LdaKeyedProperty), R(0), U8(2), | 92 B(LdaKeyedProperty), R(0), U8(2), |
| 93 B(Star), R(3), | 93 B(Star), R(3), |
| 94 B(LdaSmi), U8(2), | 94 B(LdaSmi), I8(2), |
| 95 B(BitwiseXor), R(3), U8(4), | 95 B(BitwiseXor), R(3), U8(4), |
| 96 /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(5), | 96 /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(5), |
| 97 B(LdaUndefined), | 97 B(LdaUndefined), |
| 98 /* 63 S> */ B(Return), | 98 /* 63 S> */ B(Return), |
| 99 ] | 99 ] |
| 100 constant pool: [ | 100 constant pool: [ |
| 101 FIXED_ARRAY_TYPE, | 101 FIXED_ARRAY_TYPE, |
| 102 ] | 102 ] |
| 103 handlers: [ | 103 handlers: [ |
| 104 ] | 104 ] |
| 105 | 105 |
| 106 --- | 106 --- |
| 107 snippet: " | 107 snippet: " |
| 108 var a = 1; (function f() { return a; }); a |= 24; | 108 var a = 1; (function f() { return a; }); a |= 24; |
| 109 " | 109 " |
| 110 frame size: 2 | 110 frame size: 2 |
| 111 parameter count: 1 | 111 parameter count: 1 |
| 112 bytecode array length: 25 | 112 bytecode array length: 25 |
| 113 bytecodes: [ | 113 bytecodes: [ |
| 114 B(CreateFunctionContext), U8(1), | 114 B(CreateFunctionContext), U8(1), |
| 115 B(PushContext), R(0), | 115 B(PushContext), R(0), |
| 116 /* 30 E> */ B(StackCheck), | 116 /* 30 E> */ B(StackCheck), |
| 117 /* 42 S> */ B(LdaSmi), U8(1), | 117 /* 42 S> */ B(LdaSmi), I8(1), |
| 118 /* 42 E> */ B(StaCurrentContextSlot), U8(4), | 118 /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
| 119 /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 119 /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 120 /* 75 S> */ B(LdaCurrentContextSlot), U8(4), | 120 /* 75 S> */ B(LdaCurrentContextSlot), U8(4), |
| 121 B(Star), R(1), | 121 B(Star), R(1), |
| 122 B(BitwiseOrSmi), U8(24), R(1), U8(3), | 122 B(BitwiseOrSmi), I8(24), R(1), U8(3), |
| 123 /* 77 E> */ B(StaCurrentContextSlot), U8(4), | 123 /* 77 E> */ B(StaCurrentContextSlot), U8(4), |
| 124 B(LdaUndefined), | 124 B(LdaUndefined), |
| 125 /* 84 S> */ B(Return), | 125 /* 84 S> */ B(Return), |
| 126 ] | 126 ] |
| 127 constant pool: [ | 127 constant pool: [ |
| 128 SHARED_FUNCTION_INFO_TYPE, | 128 SHARED_FUNCTION_INFO_TYPE, |
| 129 ] | 129 ] |
| 130 handlers: [ | 130 handlers: [ |
| 131 ] | 131 ] |
| 132 | 132 |
| OLD | NEW |