Chromium Code Reviews

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden

Issue 2038323002: [interpreter] Filter expression positions at source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-0060-source-position-testing
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: no 8 wrap: no
9 test function name: test 9 test function name: test
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 var test; 13 var test;
14 (function() { 14 (function() {
15 class A { 15 class A {
16 method() { return 2; } 16 method() { return 2; }
17 } 17 }
18 class B extends A { 18 class B extends A {
19 method() { return super.method() + 1; } 19 method() { return super.method() + 1; }
20 } 20 }
21 test = new B().method; 21 test = new B().method;
22 test(); 22 test();
23 })(); 23 })();
24 " 24 "
25 frame size: 7 25 frame size: 7
26 parameter count: 1 26 parameter count: 1
27 bytecode array length: 55 27 bytecode array length: 54
28 bytecodes: [ 28 bytecodes: [
29 B(Mov), R(closure), R(0), 29 B(Mov), R(closure), R(0),
30 /* 99 E> */ B(StackCheck), 30 /* 99 E> */ B(StackCheck),
31 /* 104 S> */ B(Nop), 31 /* 104 S> */ B(Mov), R(this), R(3),
32 /* 111 E> */ B(Mov), R(this), R(3),
33 B(Ldar), R(closure), 32 B(Ldar), R(closure),
34 B(JumpIfNotHole), U8(11), 33 B(JumpIfNotHole), U8(11),
35 B(LdaConstant), U8(0), 34 B(LdaConstant), U8(0),
36 B(Star), R(6), 35 B(Star), R(6),
37 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), 36 /* 111 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
38 B(Star), R(6), 37 B(Star), R(6),
39 /* 111 E> */ B(LdaConstant), U8(1), 38 B(LdaConstant), U8(1),
40 B(LdrKeyedProperty), R(6), U8(3), R(4), 39 /* 111 E> */ B(LdrKeyedProperty), R(6), U8(3), R(4),
41 B(LdaConstant), U8(2), 40 B(LdaConstant), U8(2),
42 B(Star), R(5), 41 B(Star), R(5),
43 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), 42 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3),
44 B(Mov), R(3), R(2), 43 B(Mov), R(3), R(2),
45 B(Star), R(1), 44 B(Star), R(1),
46 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), 45 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1),
47 B(Star), R(3), 46 B(Star), R(3),
48 B(LdaSmi), U8(1), 47 B(LdaSmi), U8(1),
49 B(Add), R(3), 48 B(Add), R(3),
50 /* 131 S> */ B(Return), 49 /* 131 S> */ B(Return),
(...skipping 16 matching lines...)
67 } 66 }
68 class B extends A { 67 class B extends A {
69 method() { super.x = 2; return super.x; } 68 method() { super.x = 2; return super.x; }
70 } 69 }
71 test = new B().method; 70 test = new B().method;
72 test(); 71 test();
73 })(); 72 })();
74 " 73 "
75 frame size: 6 74 frame size: 6
76 parameter count: 1 75 parameter count: 1
77 bytecode array length: 77 76 bytecode array length: 75
78 bytecodes: [ 77 bytecodes: [
79 B(Mov), R(closure), R(0), 78 B(Mov), R(closure), R(0),
80 /* 125 E> */ B(StackCheck), 79 /* 125 E> */ B(StackCheck),
81 /* 130 S> */ B(Nop), 80 /* 130 S> */ B(Mov), R(this), R(1),
82 /* 130 E> */ B(Mov), R(this), R(1),
83 B(Ldar), R(closure), 81 B(Ldar), R(closure),
84 B(JumpIfNotHole), U8(11), 82 B(JumpIfNotHole), U8(11),
85 B(LdaConstant), U8(0), 83 B(LdaConstant), U8(0),
86 B(Star), R(5), 84 B(Star), R(5),
87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), 85 /* 130 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
88 B(Star), R(5), 86 B(Star), R(5),
89 /* 130 E> */ B(LdaConstant), U8(1), 87 B(LdaConstant), U8(1),
90 B(LdrKeyedProperty), R(5), U8(1), R(2), 88 /* 130 E> */ B(LdrKeyedProperty), R(5), U8(1), R(2),
91 B(LdaConstant), U8(2), 89 B(LdaConstant), U8(2),
92 B(Star), R(3), 90 B(Star), R(3),
93 B(LdaSmi), U8(2), 91 B(LdaSmi), U8(2),
94 /* 138 E> */ B(Star), R(4), 92 B(Star), R(4),
95 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), 93 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4),
96 /* 143 S> */ B(Nop), 94 /* 143 S> */ B(Mov), R(this), R(1),
97 /* 150 E> */ B(Mov), R(this), R(1),
98 B(Ldar), R(0), 95 B(Ldar), R(0),
99 B(JumpIfNotHole), U8(11), 96 B(JumpIfNotHole), U8(11),
100 B(LdaConstant), U8(0), 97 B(LdaConstant), U8(0),
101 B(Star), R(4), 98 B(Star), R(4),
102 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), 99 /* 150 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
103 B(Star), R(4), 100 B(Star), R(4),
104 /* 150 E> */ B(LdaConstant), U8(1), 101 B(LdaConstant), U8(1),
105 B(LdrKeyedProperty), R(4), U8(3), R(2), 102 /* 150 E> */ B(LdrKeyedProperty), R(4), U8(3), R(2),
106 B(LdaConstant), U8(2), 103 B(LdaConstant), U8(2),
107 B(Star), R(3), 104 B(Star), R(3),
108 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), 105 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3),
109 /* 159 S> */ B(Return), 106 /* 159 S> */ B(Return),
110 ] 107 ]
111 constant pool: [ 108 constant pool: [
112 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 109 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
113 InstanceType::SYMBOL_TYPE, 110 InstanceType::SYMBOL_TYPE,
114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 111 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
115 ] 112 ]
(...skipping 23 matching lines...)
139 /* 118 S> */ B(Ldar), R(closure), 136 /* 118 S> */ B(Ldar), R(closure),
140 B(JumpIfNotHole), U8(11), 137 B(JumpIfNotHole), U8(11),
141 B(LdaConstant), U8(0), 138 B(LdaConstant), U8(0),
142 B(Star), R(3), 139 B(Star), R(3),
143 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 140 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
144 B(Star), R(2), 141 B(Star), R(2),
145 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) , 142 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) ,
146 B(Star), R(2), 143 B(Star), R(2),
147 B(LdaSmi), U8(1), 144 B(LdaSmi), U8(1),
148 B(Star), R(3), 145 B(Star), R(3),
149 /* 118 E> */ B(Ldar), R(0), 146 B(Ldar), R(0),
150 B(JumpIfNotHole), U8(11), 147 B(JumpIfNotHole), U8(11),
151 B(LdaConstant), U8(1), 148 B(LdaConstant), U8(1),
152 B(Star), R(4), 149 B(Star), R(4),
153 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), 150 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
154 /* 118 E> */ B(New), R(2), R(3), U8(1), 151 /* 118 E> */ B(New), R(2), R(3), U8(1),
155 /* 118 E> */ B(Star), R(2), 152 B(Star), R(2),
156 B(Ldar), R(this), 153 B(Ldar), R(this),
157 B(JumpIfNotHole), U8(4), 154 B(JumpIfNotHole), U8(4),
158 B(Jump), U8(11), 155 B(Jump), U8(11),
159 B(LdaConstant), U8(2), 156 B(LdaConstant), U8(2),
160 B(Star), R(3), 157 B(Star), R(3),
161 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 158 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
162 B(Mov), R(2), R(this), 159 B(Mov), R(2), R(this),
163 /* 128 S> */ B(Ldar), R(this), 160 /* 128 S> */ B(Ldar), R(this),
164 B(JumpIfNotHole), U8(11), 161 B(JumpIfNotHole), U8(11),
165 B(LdaConstant), U8(2), 162 B(LdaConstant), U8(2),
166 B(Star), R(2), 163 B(Star), R(2),
167 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 164 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
168 B(Star), R(2), 165 B(Star), R(2),
169 B(LdaSmi), U8(2), 166 B(LdaSmi), U8(2),
170 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), 167 /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4),
171 B(Ldar), R(this), 168 B(Ldar), R(this),
(...skipping 33 matching lines...)
205 B(Mov), R(new_target), R(0), 202 B(Mov), R(new_target), R(0),
206 /* 112 E> */ B(StackCheck), 203 /* 112 E> */ B(StackCheck),
207 /* 117 S> */ B(Ldar), R(closure), 204 /* 117 S> */ B(Ldar), R(closure),
208 B(JumpIfNotHole), U8(11), 205 B(JumpIfNotHole), U8(11),
209 B(LdaConstant), U8(0), 206 B(LdaConstant), U8(0),
210 B(Star), R(3), 207 B(Star), R(3),
211 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 208 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
212 B(Star), R(2), 209 B(Star), R(2),
213 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) , 210 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) ,
214 B(Star), R(2), 211 B(Star), R(2),
215 /* 117 E> */ B(Ldar), R(0), 212 B(Ldar), R(0),
216 B(JumpIfNotHole), U8(11), 213 B(JumpIfNotHole), U8(11),
217 B(LdaConstant), U8(1), 214 B(LdaConstant), U8(1),
218 B(Star), R(3), 215 B(Star), R(3),
219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 216 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
220 /* 117 E> */ B(New), R(2), R(0), U8(0), 217 /* 117 E> */ B(New), R(2), R(0), U8(0),
221 /* 117 E> */ B(Star), R(2), 218 B(Star), R(2),
222 B(Ldar), R(this), 219 B(Ldar), R(this),
223 B(JumpIfNotHole), U8(4), 220 B(JumpIfNotHole), U8(4),
224 B(Jump), U8(11), 221 B(Jump), U8(11),
225 B(LdaConstant), U8(2), 222 B(LdaConstant), U8(2),
226 B(Star), R(3), 223 B(Star), R(3),
227 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 224 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
228 B(Mov), R(2), R(this), 225 B(Mov), R(2), R(this),
229 /* 126 S> */ B(Ldar), R(this), 226 /* 126 S> */ B(Ldar), R(this),
230 B(JumpIfNotHole), U8(11), 227 B(JumpIfNotHole), U8(11),
231 B(LdaConstant), U8(2), 228 B(LdaConstant), U8(2),
232 B(Star), R(2), 229 B(Star), R(2),
233 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 230 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
234 B(Star), R(2), 231 B(Star), R(2),
235 B(LdaSmi), U8(2), 232 B(LdaSmi), U8(2),
236 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4), 233 /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4),
237 B(Ldar), R(this), 234 B(Ldar), R(this),
238 B(JumpIfNotHole), U8(11), 235 B(JumpIfNotHole), U8(11),
239 B(LdaConstant), U8(2), 236 B(LdaConstant), U8(2),
240 B(Star), R(2), 237 B(Star), R(2),
241 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 238 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
242 /* 139 S> */ B(Return), 239 /* 139 S> */ B(Return),
243 ] 240 ]
244 constant pool: [ 241 constant pool: [
245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 242 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
246 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
247 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
248 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
249 ] 246 ]
250 handlers: [ 247 handlers: [
251 ] 248 ]
252 249
OLDNEW

Powered by Google App Engine