Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

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

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Try harder with source positions. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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: 57 27 bytecode array length: 55
28 bytecodes: [ 28 bytecodes: [
29 B(Ldar), R(closure), 29 B(Mov), R(closure), R(0),
30 B(Star), R(0),
31 /* 99 E> */ B(StackCheck), 30 /* 99 E> */ B(StackCheck),
32 /* 104 S> */ B(Ldar), R(this), 31 /* 104 S> */ B(Ldar), R(closure),
33 B(Star), R(3), 32 B(Mov), R(this), R(3),
34 /* 111 E> */ B(Ldar), R(0),
35 B(JumpIfNotHole), U8(11), 33 B(JumpIfNotHole), U8(11),
36 B(LdaConstant), U8(0), 34 B(LdaConstant), U8(0),
37 B(Star), R(6), 35 B(Star), R(6),
38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), 36 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
39 B(Star), R(6), 37 B(Star), R(6),
40 /* 111 E> */ B(LdaConstant), U8(1), 38 /* 111 E> */ B(LdaConstant), U8(1),
41 B(KeyedLoadIC), R(6), U8(3), 39 B(KeyedLoadIC), R(6), U8(3),
42 B(Star), R(4), 40 B(Star), R(4),
43 B(LdaConstant), U8(2), 41 B(LdaConstant), U8(2),
44 B(Star), R(5), 42 B(Star), R(5),
(...skipping 24 matching lines...) Expand all
69 } 67 }
70 class B extends A { 68 class B extends A {
71 method() { super.x = 2; return super.x; } 69 method() { super.x = 2; return super.x; }
72 } 70 }
73 test = new B().method; 71 test = new B().method;
74 test(); 72 test();
75 })(); 73 })();
76 " 74 "
77 frame size: 6 75 frame size: 6
78 parameter count: 1 76 parameter count: 1
79 bytecode array length: 80 77 bytecode array length: 77
80 bytecodes: [ 78 bytecodes: [
81 B(Ldar), R(closure), 79 B(Mov), R(closure), R(0),
82 B(Star), R(0),
83 /* 125 E> */ B(StackCheck), 80 /* 125 E> */ B(StackCheck),
84 /* 130 S> */ B(Ldar), R(this), 81 /* 130 S> */ B(Ldar), R(closure),
85 B(Star), R(1), 82 B(Mov), R(this), R(1),
86 /* 130 E> */ B(Ldar), R(0),
87 B(JumpIfNotHole), U8(11), 83 B(JumpIfNotHole), U8(11),
88 B(LdaConstant), U8(0), 84 B(LdaConstant), U8(0),
89 B(Star), R(5), 85 B(Star), R(5),
90 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), 86 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
91 B(Star), R(5), 87 B(Star), R(5),
92 /* 130 E> */ B(LdaConstant), U8(1), 88 /* 130 E> */ B(LdaConstant), U8(1),
93 B(KeyedLoadIC), R(5), U8(1), 89 B(KeyedLoadIC), R(5), U8(1),
94 B(Star), R(2), 90 B(Star), R(2),
95 B(LdaConstant), U8(2), 91 B(LdaConstant), U8(2),
96 B(Star), R(3), 92 B(Star), R(3),
97 B(LdaSmi), U8(2), 93 B(LdaSmi), U8(2),
98 /* 138 E> */ B(Star), R(4), 94 /* 138 E> */ B(Star), R(4),
99 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), 95 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4),
100 /* 143 S> */ B(Ldar), R(this), 96 /* 143 S> */ B(Ldar), R(0),
101 B(Star), R(1), 97 B(Mov), R(this), R(1),
102 /* 150 E> */ B(Ldar), R(0),
103 B(JumpIfNotHole), U8(11), 98 B(JumpIfNotHole), U8(11),
104 B(LdaConstant), U8(0), 99 B(LdaConstant), U8(0),
105 B(Star), R(4), 100 B(Star), R(4),
106 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), 101 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
107 B(Star), R(4), 102 B(Star), R(4),
108 /* 150 E> */ B(LdaConstant), U8(1), 103 /* 150 E> */ B(LdaConstant), U8(1),
109 B(KeyedLoadIC), R(4), U8(3), 104 B(KeyedLoadIC), R(4), U8(3),
110 B(Star), R(2), 105 B(Star), R(2),
111 B(LdaConstant), U8(2), 106 B(LdaConstant), U8(2),
112 B(Star), R(3), 107 B(Star), R(3),
(...skipping 16 matching lines...) Expand all
129 constructor(x) { this.x_ = x; } 124 constructor(x) { this.x_ = x; }
130 } 125 }
131 class B extends A { 126 class B extends A {
132 constructor() { super(1); this.y_ = 2; } 127 constructor() { super(1); this.y_ = 2; }
133 } 128 }
134 test = new B().constructor; 129 test = new B().constructor;
135 })(); 130 })();
136 " 131 "
137 frame size: 5 132 frame size: 5
138 parameter count: 1 133 parameter count: 1
139 bytecode array length: 106 134 bytecode array length: 105
140 bytecodes: [ 135 bytecodes: [
141 B(Ldar), R(closure), 136 B(Mov), R(closure), R(1),
142 B(Star), R(1), 137 B(Mov), R(new_target), R(0),
143 B(Ldar), R(new_target),
144 B(Star), R(0),
145 /* 113 E> */ B(StackCheck), 138 /* 113 E> */ B(StackCheck),
146 /* 118 S> */ B(Ldar), R(1), 139 /* 118 S> */ B(Ldar), R(closure),
147 B(JumpIfNotHole), U8(11), 140 B(JumpIfNotHole), U8(11),
148 B(LdaConstant), U8(0), 141 B(LdaConstant), U8(0),
149 B(Star), R(3), 142 B(Star), R(3),
150 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 143 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
151 B(Star), R(2), 144 B(Star), R(2),
152 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) , 145 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) ,
153 B(Star), R(2), 146 B(Star), R(2),
154 B(LdaSmi), U8(1), 147 B(LdaSmi), U8(1),
155 B(Star), R(3), 148 B(Star), R(3),
156 /* 118 E> */ B(Ldar), R(0), 149 /* 118 E> */ B(Ldar), R(0),
157 B(JumpIfNotHole), U8(11), 150 B(JumpIfNotHole), U8(11),
158 B(LdaConstant), U8(1), 151 B(LdaConstant), U8(1),
159 B(Star), R(4), 152 B(Star), R(4),
160 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), 153 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
161 /* 118 E> */ B(New), R(2), R(3), U8(1), 154 /* 118 E> */ B(New), R(2), R(3), U8(1),
162 /* 118 E> */ B(Star), R(2), 155 /* 118 E> */ B(Star), R(2),
163 B(Ldar), R(this), 156 B(Ldar), R(this),
164 B(JumpIfNotHole), U8(4), 157 B(JumpIfNotHole), U8(4),
165 B(Jump), U8(11), 158 B(Jump), U8(11),
166 B(LdaConstant), U8(2), 159 B(LdaConstant), U8(2),
167 B(Star), R(3), 160 B(Star), R(3),
168 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 161 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
169 B(Ldar), R(2), 162 B(Mov), R(2), R(this),
170 B(Star), R(this), 163 /* 128 S> */ B(Ldar), R(this),
171 /* 128 S> */ B(JumpIfNotHole), U8(11), 164 B(JumpIfNotHole), U8(11),
172 B(LdaConstant), U8(2), 165 B(LdaConstant), U8(2),
173 B(Star), R(2), 166 B(Star), R(2),
174 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 167 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
175 B(Star), R(2), 168 B(Star), R(2),
176 B(LdaSmi), U8(2), 169 B(LdaSmi), U8(2),
177 /* 136 E> */ B(StoreICStrict), R(2), U8(3), U8(4), 170 /* 136 E> */ B(StoreICStrict), R(2), U8(3), U8(4),
178 B(Ldar), R(this), 171 B(Ldar), R(this),
179 B(JumpIfNotHole), U8(11), 172 B(JumpIfNotHole), U8(11),
180 B(LdaConstant), U8(2), 173 B(LdaConstant), U8(2),
181 B(Star), R(2), 174 B(Star), R(2),
(...skipping 17 matching lines...) Expand all
199 constructor() { this.x_ = 1; } 192 constructor() { this.x_ = 1; }
200 } 193 }
201 class B extends A { 194 class B extends A {
202 constructor() { super(); this.y_ = 2; } 195 constructor() { super(); this.y_ = 2; }
203 } 196 }
204 test = new B().constructor; 197 test = new B().constructor;
205 })(); 198 })();
206 " 199 "
207 frame size: 4 200 frame size: 4
208 parameter count: 1 201 parameter count: 1
209 bytecode array length: 102 202 bytecode array length: 101
210 bytecodes: [ 203 bytecodes: [
211 B(Ldar), R(closure), 204 B(Mov), R(closure), R(1),
212 B(Star), R(1), 205 B(Mov), R(new_target), R(0),
213 B(Ldar), R(new_target),
214 B(Star), R(0),
215 /* 112 E> */ B(StackCheck), 206 /* 112 E> */ B(StackCheck),
216 /* 117 S> */ B(Ldar), R(1), 207 /* 117 S> */ B(Ldar), R(closure),
217 B(JumpIfNotHole), U8(11), 208 B(JumpIfNotHole), U8(11),
218 B(LdaConstant), U8(0), 209 B(LdaConstant), U8(0),
219 B(Star), R(3), 210 B(Star), R(3),
220 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 211 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
221 B(Star), R(2), 212 B(Star), R(2),
222 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) , 213 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1) ,
223 B(Star), R(2), 214 B(Star), R(2),
224 /* 117 E> */ B(Ldar), R(0), 215 /* 117 E> */ B(Ldar), R(0),
225 B(JumpIfNotHole), U8(11), 216 B(JumpIfNotHole), U8(11),
226 B(LdaConstant), U8(1), 217 B(LdaConstant), U8(1),
227 B(Star), R(3), 218 B(Star), R(3),
228 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
229 /* 117 E> */ B(New), R(2), R(0), U8(0), 220 /* 117 E> */ B(New), R(2), R(0), U8(0),
230 /* 117 E> */ B(Star), R(2), 221 /* 117 E> */ B(Star), R(2),
231 B(Ldar), R(this), 222 B(Ldar), R(this),
232 B(JumpIfNotHole), U8(4), 223 B(JumpIfNotHole), U8(4),
233 B(Jump), U8(11), 224 B(Jump), U8(11),
234 B(LdaConstant), U8(2), 225 B(LdaConstant), U8(2),
235 B(Star), R(3), 226 B(Star), R(3),
236 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 227 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
237 B(Ldar), R(2), 228 B(Mov), R(2), R(this),
238 B(Star), R(this), 229 /* 126 S> */ B(Ldar), R(this),
239 /* 126 S> */ B(JumpIfNotHole), U8(11), 230 B(JumpIfNotHole), U8(11),
240 B(LdaConstant), U8(2), 231 B(LdaConstant), U8(2),
241 B(Star), R(2), 232 B(Star), R(2),
242 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 233 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
243 B(Star), R(2), 234 B(Star), R(2),
244 B(LdaSmi), U8(2), 235 B(LdaSmi), U8(2),
245 /* 134 E> */ B(StoreICStrict), R(2), U8(3), U8(4), 236 /* 134 E> */ B(StoreICStrict), R(2), U8(3), U8(4),
246 B(Ldar), R(this), 237 B(Ldar), R(this),
247 B(JumpIfNotHole), U8(11), 238 B(JumpIfNotHole), U8(11),
248 B(LdaConstant), U8(2), 239 B(LdaConstant), U8(2),
249 B(Star), R(2), 240 B(Star), R(2),
250 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 241 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
251 /* 139 S> */ B(Return), 242 /* 139 S> */ B(Return),
252 ] 243 ]
253 constant pool: [ 244 constant pool: [
254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
255 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 246 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
256 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 247 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
257 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 248 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
258 ] 249 ]
259 handlers: [ 250 handlers: [
260 ] 251 ]
261 252
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698