• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: yes
9
10---
11snippet: "
12  var x = 0, y = 1;
13  return (x = 2, y = 3, x = 4, y = 5);
14"
15frame size: 2
16parameter count: 1
17bytecode array length: 25
18bytecodes: [
19  /*   30 E> */ B(StackCheck),
20  /*   42 S> */ B(LdaZero),
21                B(Star), R(0),
22  /*   49 S> */ B(LdaSmi), U8(1),
23                B(Star), R(1),
24  /*   52 S> */ B(LdaSmi), U8(2),
25                B(Star), R(0),
26                B(LdaSmi), U8(3),
27                B(Star), R(1),
28                B(LdaSmi), U8(4),
29                B(Star), R(0),
30                B(LdaSmi), U8(5),
31                B(Star), R(1),
32  /*   89 S> */ B(Return),
33]
34constant pool: [
35]
36handlers: [
37]
38
39---
40snippet: "
41  var x = 55;
42  var y = (x = 100);
43  return y;
44"
45frame size: 2
46parameter count: 1
47bytecode array length: 13
48bytecodes: [
49  /*   30 E> */ B(StackCheck),
50  /*   42 S> */ B(LdaSmi), U8(55),
51                B(Star), R(0),
52  /*   57 S> */ B(LdaSmi), U8(100),
53                B(Star), R(0),
54                B(Star), R(1),
55  /*   65 S> */ B(Nop),
56  /*   75 S> */ B(Return),
57]
58constant pool: [
59]
60handlers: [
61]
62
63---
64snippet: "
65  var x = 55;
66  x = x + (x = 100) + (x = 101);
67  return x;
68"
69frame size: 3
70parameter count: 1
71bytecode array length: 26
72bytecodes: [
73  /*   30 E> */ B(StackCheck),
74  /*   42 S> */ B(LdaSmi), U8(55),
75                B(Star), R(0),
76  /*   46 S> */ B(LdaSmi), U8(100),
77                B(Mov), R(0), R(1),
78                B(Star), R(0),
79  /*   57 E> */ B(Add), R(1),
80                B(Star), R(2),
81                B(LdaSmi), U8(101),
82                B(Star), R(0),
83  /*   69 E> */ B(Add), R(2),
84                B(Star), R(0),
85  /*   77 S> */ B(Nop),
86  /*   87 S> */ B(Return),
87]
88constant pool: [
89]
90handlers: [
91]
92
93---
94snippet: "
95  var x = 55;
96  x = (x = 56) - x + (x = 57);
97  x++;
98  return x;
99"
100frame size: 3
101parameter count: 1
102bytecode array length: 29
103bytecodes: [
104  /*   30 E> */ B(StackCheck),
105  /*   42 S> */ B(LdaSmi), U8(55),
106                B(Star), R(0),
107  /*   46 S> */ B(LdaSmi), U8(56),
108                B(Star), R(0),
109  /*   61 E> */ B(Sub), R(0),
110                B(Star), R(2),
111                B(LdaSmi), U8(57),
112                B(Star), R(0),
113  /*   68 E> */ B(Add), R(2),
114                B(Star), R(0),
115  /*   75 S> */ B(ToNumber),
116                B(Star), R(1),
117                B(Inc),
118                B(Star), R(0),
119  /*   80 S> */ B(Nop),
120  /*   90 S> */ B(Return),
121]
122constant pool: [
123]
124handlers: [
125]
126
127---
128snippet: "
129  var x = 55;
130  var y = x + (x = 1) + (x = 2) + (x = 3);
131  return y;
132"
133frame size: 4
134parameter count: 1
135bytecode array length: 34
136bytecodes: [
137  /*   30 E> */ B(StackCheck),
138  /*   42 S> */ B(LdaSmi), U8(55),
139                B(Star), R(0),
140  /*   76 S> */ B(LdaSmi), U8(1),
141                B(Mov), R(0), R(2),
142                B(Star), R(0),
143  /*   61 E> */ B(Add), R(2),
144                B(Star), R(3),
145                B(LdaSmi), U8(2),
146                B(Star), R(0),
147  /*   71 E> */ B(Add), R(3),
148                B(Star), R(2),
149                B(LdaSmi), U8(3),
150                B(Star), R(0),
151  /*   81 E> */ B(Add), R(2),
152                B(Star), R(1),
153  /*   87 S> */ B(Nop),
154  /*   97 S> */ B(Return),
155]
156constant pool: [
157]
158handlers: [
159]
160
161---
162snippet: "
163  var x = 55;
164  var x = x + (x = 1) + (x = 2) + (x = 3);
165  return x;
166"
167frame size: 3
168parameter count: 1
169bytecode array length: 34
170bytecodes: [
171  /*   30 E> */ B(StackCheck),
172  /*   42 S> */ B(LdaSmi), U8(55),
173                B(Star), R(0),
174  /*   76 S> */ B(LdaSmi), U8(1),
175                B(Mov), R(0), R(1),
176                B(Star), R(0),
177  /*   61 E> */ B(Add), R(1),
178                B(Star), R(2),
179                B(LdaSmi), U8(2),
180                B(Star), R(0),
181  /*   71 E> */ B(Add), R(2),
182                B(Star), R(1),
183                B(LdaSmi), U8(3),
184                B(Star), R(0),
185  /*   81 E> */ B(Add), R(1),
186                B(Star), R(0),
187  /*   87 S> */ B(Nop),
188  /*   97 S> */ B(Return),
189]
190constant pool: [
191]
192handlers: [
193]
194
195---
196snippet: "
197  var x = 10, y = 20;
198  return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y;
199"
200frame size: 5
201parameter count: 1
202bytecode array length: 65
203bytecodes: [
204  /*   30 E> */ B(StackCheck),
205  /*   42 S> */ B(LdaSmi), U8(10),
206                B(Star), R(0),
207  /*   50 S> */ B(LdaSmi), U8(20),
208                B(Star), R(1),
209  /*   54 S> */ B(LdaSmi), U8(1),
210                B(Mov), R(0), R(2),
211                B(Star), R(0),
212  /*   68 E> */ B(Add), R(2),
213                B(Star), R(3),
214                B(LdaSmi), U8(1),
215  /*   76 E> */ B(Add), R(0),
216                B(Star), R(4),
217                B(LdaSmi), U8(2),
218                B(Star), R(1),
219  /*   88 E> */ B(Mul), R(4),
220                B(Add), R(3),
221                B(Star), R(2),
222                B(LdaSmi), U8(3),
223                B(Star), R(1),
224  /*   98 E> */ B(Add), R(2),
225                B(Star), R(3),
226                B(LdaSmi), U8(4),
227                B(Star), R(0),
228  /*  108 E> */ B(Add), R(3),
229                B(Star), R(2),
230                B(LdaSmi), U8(5),
231                B(Star), R(1),
232  /*  118 E> */ B(Add), R(2),
233                B(Star), R(3),
234                B(Ldar), R(1),
235  /*  125 E> */ B(Add), R(3),
236  /*  128 S> */ B(Return),
237]
238constant pool: [
239]
240handlers: [
241]
242
243---
244snippet: "
245  var x = 17;
246  return 1 + x + (x++) + (++x);
247"
248frame size: 4
249parameter count: 1
250bytecode array length: 37
251bytecodes: [
252  /*   30 E> */ B(StackCheck),
253  /*   42 S> */ B(LdaSmi), U8(17),
254                B(Star), R(0),
255  /*   46 S> */ B(LdaSmi), U8(1),
256                B(Star), R(1),
257                B(Ldar), R(0),
258  /*   57 E> */ B(Add), R(1),
259                B(Star), R(2),
260                B(Ldar), R(0),
261                B(ToNumber),
262                B(Star), R(1),
263                B(Inc),
264                B(Star), R(0),
265                B(Ldar), R(1),
266  /*   63 E> */ B(Add), R(2),
267                B(Star), R(3),
268                B(Ldar), R(0),
269                B(Inc),
270                B(Star), R(0),
271  /*   72 E> */ B(Add), R(3),
272  /*   76 S> */ B(Return),
273]
274constant pool: [
275]
276handlers: [
277]
278
279