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 let x = 10; | 10 let x = 10; |
11 " | 11 " |
12 frame size: 1 | 12 frame size: 2 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 10 | 14 bytecode array length: 14 |
15 bytecodes: [ | 15 bytecodes: [ |
16 B(LdaTheHole), | 16 B(LdaTheHole), |
17 B(Star), R(0), | 17 B(Star), R(0), |
18 /* 30 E> */ B(StackCheck), | 18 /* 30 E> */ B(StackCheck), |
19 /* 42 S> */ B(LdaSmi), I8(10), | 19 /* 42 S> */ B(LdaConstant), U8(0), |
| 20 B(Star), R(1), |
| 21 B(LdaSmi), I8(10), |
20 B(Star), R(0), | 22 B(Star), R(0), |
21 B(LdaUndefined), | 23 B(LdaUndefined), |
22 /* 46 S> */ B(Return), | 24 /* 46 S> */ B(Return), |
23 ] | 25 ] |
24 constant pool: [ | 26 constant pool: [ |
| 27 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
25 ] | 28 ] |
26 handlers: [ | 29 handlers: [ |
27 ] | 30 ] |
28 | 31 |
29 --- | 32 --- |
30 snippet: " | 33 snippet: " |
31 let x = 10; return x; | 34 let x = 10; return x; |
32 " | 35 " |
33 frame size: 1 | 36 frame size: 2 |
34 parameter count: 1 | 37 parameter count: 1 |
35 bytecode array length: 10 | 38 bytecode array length: 14 |
36 bytecodes: [ | 39 bytecodes: [ |
37 B(LdaTheHole), | 40 B(LdaTheHole), |
38 B(Star), R(0), | 41 B(Star), R(0), |
39 /* 30 E> */ B(StackCheck), | 42 /* 30 E> */ B(StackCheck), |
40 /* 42 S> */ B(LdaSmi), I8(10), | 43 /* 42 S> */ B(LdaConstant), U8(0), |
| 44 B(Star), R(1), |
| 45 B(LdaSmi), I8(10), |
41 B(Star), R(0), | 46 B(Star), R(0), |
42 /* 46 S> */ B(Nop), | 47 /* 46 S> */ B(Nop), |
43 /* 56 S> */ B(Return), | 48 /* 56 S> */ B(Return), |
44 ] | 49 ] |
45 constant pool: [ | 50 constant pool: [ |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
46 ] | 52 ] |
47 handlers: [ | 53 handlers: [ |
48 ] | 54 ] |
49 | 55 |
50 --- | 56 --- |
51 snippet: " | 57 snippet: " |
52 let x = (x = 20); | 58 let x = (x = 20); |
53 " | 59 " |
54 frame size: 3 | 60 frame size: 5 |
55 parameter count: 1 | 61 parameter count: 1 |
56 bytecode array length: 29 | 62 bytecode array length: 37 |
57 bytecodes: [ | 63 bytecodes: [ |
58 B(LdaTheHole), | 64 B(LdaTheHole), |
59 B(Star), R(0), | 65 B(Star), R(0), |
60 /* 30 E> */ B(StackCheck), | 66 /* 30 E> */ B(StackCheck), |
61 /* 45 S> */ B(LdaSmi), I8(20), | 67 /* 45 S> */ B(LdaConstant), U8(0), |
62 B(Star), R(1), | 68 B(Star), R(1), |
| 69 B(LdaConstant), U8(0), |
| 70 B(Star), R(2), |
| 71 B(LdaSmi), I8(20), |
| 72 B(Star), R(3), |
63 B(Ldar), R(0), | 73 B(Ldar), R(0), |
64 B(JumpIfNotHole), U8(11), | 74 B(JumpIfNotHole), U8(11), |
65 B(LdaConstant), U8(0), | 75 B(LdaConstant), U8(0), |
66 B(Star), R(2), | 76 B(Star), R(4), |
67 /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 77 /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
68 B(Mov), R(1), R(0), | 78 B(Mov), R(3), R(0), |
69 B(Mov), R(1), R(0), | 79 B(Mov), R(3), R(0), |
70 B(LdaUndefined), | 80 B(LdaUndefined), |
71 /* 52 S> */ B(Return), | 81 /* 52 S> */ B(Return), |
72 ] | 82 ] |
73 constant pool: [ | 83 constant pool: [ |
74 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 84 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
75 ] | 85 ] |
76 handlers: [ | 86 handlers: [ |
77 ] | 87 ] |
78 | 88 |
79 --- | 89 --- |
80 snippet: " | 90 snippet: " |
81 let x = 10; x = 20; | 91 let x = 10; x = 20; |
82 " | 92 " |
83 frame size: 1 | 93 frame size: 2 |
84 parameter count: 1 | 94 parameter count: 1 |
85 bytecode array length: 14 | 95 bytecode array length: 22 |
86 bytecodes: [ | 96 bytecodes: [ |
87 B(LdaTheHole), | 97 B(LdaTheHole), |
88 B(Star), R(0), | 98 B(Star), R(0), |
89 /* 30 E> */ B(StackCheck), | 99 /* 30 E> */ B(StackCheck), |
90 /* 42 S> */ B(LdaSmi), I8(10), | 100 /* 42 S> */ B(LdaConstant), U8(0), |
| 101 B(Star), R(1), |
| 102 B(LdaSmi), I8(10), |
91 B(Star), R(0), | 103 B(Star), R(0), |
92 /* 46 S> */ B(LdaSmi), I8(20), | 104 /* 46 S> */ B(LdaConstant), U8(0), |
| 105 B(Star), R(1), |
| 106 B(LdaSmi), I8(20), |
93 B(Star), R(0), | 107 B(Star), R(0), |
94 B(LdaUndefined), | 108 B(LdaUndefined), |
95 /* 54 S> */ B(Return), | 109 /* 54 S> */ B(Return), |
96 ] | 110 ] |
97 constant pool: [ | 111 constant pool: [ |
| 112 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
98 ] | 113 ] |
99 handlers: [ | 114 handlers: [ |
100 ] | 115 ] |
101 | 116 |
OLD | NEW |