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