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 const x = 10; | 10 const 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 /* 44 S> */ B(LdaSmi), I8(10), | 19 /* 44 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 /* 48 S> */ B(Return), | 24 /* 48 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 const x = 10; return x; | 34 const 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 /* 44 S> */ B(LdaSmi), I8(10), | 43 /* 44 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 /* 48 S> */ B(Nop), | 47 /* 48 S> */ B(Nop), |
43 /* 58 S> */ B(Return), | 48 /* 58 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 const x = ( x = 20); | 58 const 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: 30 | 62 bytecode array length: 38 |
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 /* 48 S> */ B(LdaSmi), I8(20), | 67 /* 48 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 /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 77 /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
68 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 78 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
69 B(Star), R(0), | 79 B(Star), R(0), |
70 B(LdaUndefined), | 80 B(LdaUndefined), |
71 /* 55 S> */ B(Return), | 81 /* 55 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 const x = 10; x = 20; | 91 const 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: 17 | 95 bytecode array length: 23 |
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 /* 44 S> */ B(LdaSmi), I8(10), | 100 /* 44 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 /* 48 S> */ B(LdaSmi), I8(20), | 104 /* 48 S> */ B(LdaConstant), U8(0), |
| 105 B(Star), R(1), |
93 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 106 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
94 B(LdaUndefined), | 107 B(LdaUndefined), |
95 /* 56 S> */ B(Return), | 108 /* 56 S> */ B(Return), |
96 ] | 109 ] |
97 constant pool: [ | 110 constant pool: [ |
| 111 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
98 ] | 112 ] |
99 handlers: [ | 113 handlers: [ |
100 ] | 114 ] |
101 | 115 |
OLD | NEW |