OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | |
7 execute: yes | 6 execute: yes |
8 wrap: yes | 7 wrap: yes |
9 | 8 |
10 --- | 9 --- |
11 snippet: " | 10 snippet: " |
12 const x = 10; function f1() {return x;} | 11 const x = 10; function f1() {return x;} |
13 " | 12 " |
14 frame size: 2 | 13 frame size: 2 |
15 parameter count: 1 | 14 parameter count: 1 |
16 bytecode array length: 21 | 15 bytecode array length: 21 |
17 bytecodes: [ | 16 bytecodes: [ |
18 B(CreateFunctionContext), U8(1), | 17 B(CreateFunctionContext), U8(1), |
19 B(PushContext), R(1), | 18 B(PushContext), R(1), |
20 B(LdaTheHole), | 19 B(LdaTheHole), |
21 B(StaContextSlot), R(context), U8(4), | 20 B(StaContextSlot), R(context), U8(4), |
22 B(CreateClosure), U8(0), U8(2), | 21 B(CreateClosure), U8(0), U8(2), |
23 B(Star), R(0), | 22 B(Star), R(0), |
24 /* 30 E> */ B(StackCheck), | 23 /* 30 E> */ B(StackCheck), |
25 /* 44 S> */ B(LdaSmi), U8(10), | 24 /* 44 S> */ B(LdaSmi), U8(10), |
26 /* 44 E> */ B(StaContextSlot), R(context), U8(4), | 25 /* 44 E> */ B(StaContextSlot), R(context), U8(4), |
27 B(LdaUndefined), | 26 B(LdaUndefined), |
28 /* 74 S> */ B(Return), | 27 /* 74 S> */ B(Return), |
29 ] | 28 ] |
30 constant pool: [ | 29 constant pool: [ |
31 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 30 SHARED_FUNCTION_INFO_TYPE, |
32 ] | 31 ] |
33 handlers: [ | 32 handlers: [ |
34 ] | 33 ] |
35 | 34 |
36 --- | 35 --- |
37 snippet: " | 36 snippet: " |
38 const x = 10; function f1() {return x;} return x; | 37 const x = 10; function f1() {return x;} return x; |
39 " | 38 " |
40 frame size: 3 | 39 frame size: 3 |
41 parameter count: 1 | 40 parameter count: 1 |
42 bytecode array length: 34 | 41 bytecode array length: 34 |
43 bytecodes: [ | 42 bytecodes: [ |
44 B(CreateFunctionContext), U8(1), | 43 B(CreateFunctionContext), U8(1), |
45 B(PushContext), R(1), | 44 B(PushContext), R(1), |
46 B(LdaTheHole), | 45 B(LdaTheHole), |
47 B(StaContextSlot), R(context), U8(4), | 46 B(StaContextSlot), R(context), U8(4), |
48 B(CreateClosure), U8(0), U8(2), | 47 B(CreateClosure), U8(0), U8(2), |
49 B(Star), R(0), | 48 B(Star), R(0), |
50 /* 30 E> */ B(StackCheck), | 49 /* 30 E> */ B(StackCheck), |
51 /* 44 S> */ B(LdaSmi), U8(10), | 50 /* 44 S> */ B(LdaSmi), U8(10), |
52 /* 44 E> */ B(StaContextSlot), R(context), U8(4), | 51 /* 44 E> */ B(StaContextSlot), R(context), U8(4), |
53 /* 74 S> */ B(LdaContextSlot), R(context), U8(4), | 52 /* 74 S> */ B(LdaContextSlot), R(context), U8(4), |
54 B(JumpIfNotHole), U8(11), | 53 B(JumpIfNotHole), U8(11), |
55 B(LdaConstant), U8(1), | 54 B(LdaConstant), U8(1), |
56 B(Star), R(2), | 55 B(Star), R(2), |
57 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 56 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
58 /* 84 S> */ B(Return), | 57 /* 84 S> */ B(Return), |
59 ] | 58 ] |
60 constant pool: [ | 59 constant pool: [ |
61 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 60 SHARED_FUNCTION_INFO_TYPE, |
62 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 61 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
63 ] | 62 ] |
64 handlers: [ | 63 handlers: [ |
65 ] | 64 ] |
66 | 65 |
67 --- | 66 --- |
68 snippet: " | 67 snippet: " |
69 const x = (x = 20); function f1() {return x;} | 68 const x = (x = 20); function f1() {return x;} |
70 " | 69 " |
71 frame size: 4 | 70 frame size: 4 |
72 parameter count: 1 | 71 parameter count: 1 |
(...skipping 12 matching lines...) Expand all Loading... |
85 B(JumpIfNotHole), U8(11), | 84 B(JumpIfNotHole), U8(11), |
86 B(LdaConstant), U8(1), | 85 B(LdaConstant), U8(1), |
87 B(Star), R(3), | 86 B(Star), R(3), |
88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
89 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 88 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
90 /* 47 E> */ B(StaContextSlot), R(context), U8(4), | 89 /* 47 E> */ B(StaContextSlot), R(context), U8(4), |
91 B(LdaUndefined), | 90 B(LdaUndefined), |
92 /* 80 S> */ B(Return), | 91 /* 80 S> */ B(Return), |
93 ] | 92 ] |
94 constant pool: [ | 93 constant pool: [ |
95 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 94 SHARED_FUNCTION_INFO_TYPE, |
96 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 95 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
97 ] | 96 ] |
98 handlers: [ | 97 handlers: [ |
99 ] | 98 ] |
100 | 99 |
101 --- | 100 --- |
102 snippet: " | 101 snippet: " |
103 const x = 10; x = 20; function f1() {return x;} | 102 const x = 10; x = 20; function f1() {return x;} |
104 " | 103 " |
105 frame size: 4 | 104 frame size: 4 |
106 parameter count: 1 | 105 parameter count: 1 |
(...skipping 13 matching lines...) Expand all Loading... |
120 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), | 119 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), |
121 B(JumpIfNotHole), U8(11), | 120 B(JumpIfNotHole), U8(11), |
122 B(LdaConstant), U8(1), | 121 B(LdaConstant), U8(1), |
123 B(Star), R(3), | 122 B(Star), R(3), |
124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 123 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
125 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 124 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
126 B(LdaUndefined), | 125 B(LdaUndefined), |
127 /* 82 S> */ B(Return), | 126 /* 82 S> */ B(Return), |
128 ] | 127 ] |
129 constant pool: [ | 128 constant pool: [ |
130 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 129 SHARED_FUNCTION_INFO_TYPE, |
131 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
132 ] | 131 ] |
133 handlers: [ | 132 handlers: [ |
134 ] | 133 ] |
135 | 134 |
OLD | NEW |