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