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; function f1() {return x;} | 10 let x = 10; function f1() {return x;} |
(...skipping 17 matching lines...) Expand all Loading... |
28 constant pool: [ | 28 constant pool: [ |
29 SHARED_FUNCTION_INFO_TYPE, | 29 SHARED_FUNCTION_INFO_TYPE, |
30 ] | 30 ] |
31 handlers: [ | 31 handlers: [ |
32 ] | 32 ] |
33 | 33 |
34 --- | 34 --- |
35 snippet: " | 35 snippet: " |
36 let x = 10; function f1() {return x;} return x; | 36 let x = 10; function f1() {return x;} return x; |
37 " | 37 " |
38 frame size: 3 | 38 frame size: 2 |
39 parameter count: 1 | 39 parameter count: 1 |
40 bytecode array length: 37 | 40 bytecode array length: 26 |
41 bytecodes: [ | 41 bytecodes: [ |
42 B(CreateFunctionContext), U8(1), | 42 B(CreateFunctionContext), U8(1), |
43 B(PushContext), R(1), | 43 B(PushContext), R(1), |
44 B(LdaTheHole), | 44 B(LdaTheHole), |
45 B(StaContextSlot), R(context), U8(4), U8(0), | 45 B(StaContextSlot), R(context), U8(4), U8(0), |
46 B(CreateClosure), U8(0), U8(2), | 46 B(CreateClosure), U8(0), U8(2), |
47 B(Star), R(0), | 47 B(Star), R(0), |
48 /* 30 E> */ B(StackCheck), | 48 /* 30 E> */ B(StackCheck), |
49 /* 42 S> */ B(LdaSmi), U8(10), | 49 /* 42 S> */ B(LdaSmi), U8(10), |
50 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 50 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
51 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), | 51 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
52 B(JumpIfNotHole), U8(11), | |
53 B(LdaConstant), U8(1), | |
54 B(Star), R(2), | |
55 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | |
56 /* 82 S> */ B(Return), | 52 /* 82 S> */ B(Return), |
57 ] | 53 ] |
58 constant pool: [ | 54 constant pool: [ |
59 SHARED_FUNCTION_INFO_TYPE, | 55 SHARED_FUNCTION_INFO_TYPE, |
60 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | |
61 ] | 56 ] |
62 handlers: [ | 57 handlers: [ |
63 ] | 58 ] |
64 | 59 |
65 --- | 60 --- |
66 snippet: " | 61 snippet: " |
67 let x = (x = 20); function f1() {return x;} | 62 let x = (x = 20); function f1() {return x;} |
68 " | 63 " |
69 frame size: 4 | 64 frame size: 4 |
70 parameter count: 1 | 65 parameter count: 1 |
(...skipping 23 matching lines...) Expand all Loading... |
94 SHARED_FUNCTION_INFO_TYPE, | 89 SHARED_FUNCTION_INFO_TYPE, |
95 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 90 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
96 ] | 91 ] |
97 handlers: [ | 92 handlers: [ |
98 ] | 93 ] |
99 | 94 |
100 --- | 95 --- |
101 snippet: " | 96 snippet: " |
102 let x = 10; x = 20; function f1() {return x;} | 97 let x = 10; x = 20; function f1() {return x;} |
103 " | 98 " |
104 frame size: 4 | 99 frame size: 2 |
105 parameter count: 1 | 100 parameter count: 1 |
106 bytecode array length: 48 | 101 bytecode array length: 29 |
107 bytecodes: [ | 102 bytecodes: [ |
108 B(CreateFunctionContext), U8(1), | 103 B(CreateFunctionContext), U8(1), |
109 B(PushContext), R(1), | 104 B(PushContext), R(1), |
110 B(LdaTheHole), | 105 B(LdaTheHole), |
111 B(StaContextSlot), R(context), U8(4), U8(0), | 106 B(StaContextSlot), R(context), U8(4), U8(0), |
112 B(CreateClosure), U8(0), U8(2), | 107 B(CreateClosure), U8(0), U8(2), |
113 B(Star), R(0), | 108 B(Star), R(0), |
114 /* 30 E> */ B(StackCheck), | 109 /* 30 E> */ B(StackCheck), |
115 /* 42 S> */ B(LdaSmi), U8(10), | 110 /* 42 S> */ B(LdaSmi), U8(10), |
116 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 111 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
117 /* 46 S> */ B(LdaSmi), U8(20), | 112 /* 46 S> */ B(LdaSmi), U8(20), |
118 B(Star), R(2), | 113 /* 48 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
119 /* 48 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), | |
120 B(JumpIfNotHole), U8(11), | |
121 B(LdaConstant), U8(1), | |
122 B(Star), R(3), | |
123 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | |
124 B(Ldar), R(2), | |
125 B(StaContextSlot), R(context), U8(4), U8(0), | |
126 B(LdaUndefined), | 114 B(LdaUndefined), |
127 /* 80 S> */ B(Return), | 115 /* 80 S> */ B(Return), |
128 ] | 116 ] |
129 constant pool: [ | 117 constant pool: [ |
130 SHARED_FUNCTION_INFO_TYPE, | 118 SHARED_FUNCTION_INFO_TYPE, |
131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | |
132 ] | 119 ] |
133 handlers: [ | 120 handlers: [ |
134 ] | 121 ] |
135 | 122 |
OLD | NEW |