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

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

Issue 2485383002: [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. (Closed)
Patch Set: Created 4 years, 1 month 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 class Person { 10 class Person {
11 constructor(name) { this.name = name; } 11 constructor(name) { this.name = name; }
12 speak() { console.log(this.name + ' is speaking.'); } 12 speak() { console.log(this.name + ' is speaking.'); }
13 } 13 }
14 " 14 "
15 frame size: 10 15 frame size: 10
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 74 17 bytecode array length: 75
18 bytecodes: [ 18 bytecodes: [
19 B(LdaTheHole), 19 B(LdaTheHole),
20 B(Star), R(2), 20 B(Star), R(2),
21 /* 30 E> */ B(StackCheck), 21 /* 30 E> */ B(StackCheck),
22 B(LdaTheHole), 22 B(LdaTheHole),
23 B(Star), R(0), 23 B(Star), R(0),
24 /* 34 S> */ B(LdaTheHole), 24 /* 34 S> */ B(LdaTheHole),
25 B(Star), R(3), 25 B(Star), R(3),
26 B(CreateClosure), U8(0), U8(2), 26 B(CreateClosure), U8(0), U8(2),
27 B(Star), R(4), 27 B(Star), R(4),
28 B(LdaSmi), U8(34), 28 B(LdaSmi), U8(34),
29 B(Star), R(5), 29 B(Star), R(5),
30 B(Wide), B(LdaSmi), U16(148), 30 B(Wide), B(LdaSmi), U16(148),
31 B(Star), R(6), 31 B(Star), R(6),
32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), 32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
33 B(Star), R(3), 33 B(Star), R(3),
34 B(LdrNamedProperty), R(3), U8(1), U8(2), R(4), 34 B(LdaNamedProperty), R(3), U8(1), U8(2),
35 B(Star), R(4),
35 B(LdaConstant), U8(2), 36 B(LdaConstant), U8(2),
36 B(ToName), R(6), 37 B(ToName), R(6),
37 B(CreateClosure), U8(3), U8(2), 38 B(CreateClosure), U8(3), U8(2),
38 B(Star), R(7), 39 B(Star), R(7),
39 B(LdaSmi), U8(2), 40 B(LdaSmi), U8(2),
40 B(Star), R(8), 41 B(Star), R(8),
41 B(LdaZero), 42 B(LdaZero),
42 B(Star), R(9), 43 B(Star), R(9),
43 B(Mov), R(4), R(5), 44 B(Mov), R(4), R(5),
44 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5), 45 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5),
(...skipping 15 matching lines...) Expand all
60 61
61 --- 62 ---
62 snippet: " 63 snippet: "
63 class person { 64 class person {
64 constructor(name) { this.name = name; } 65 constructor(name) { this.name = name; }
65 speak() { console.log(this.name + ' is speaking.'); } 66 speak() { console.log(this.name + ' is speaking.'); }
66 } 67 }
67 " 68 "
68 frame size: 10 69 frame size: 10
69 parameter count: 1 70 parameter count: 1
70 bytecode array length: 74 71 bytecode array length: 75
71 bytecodes: [ 72 bytecodes: [
72 B(LdaTheHole), 73 B(LdaTheHole),
73 B(Star), R(2), 74 B(Star), R(2),
74 /* 30 E> */ B(StackCheck), 75 /* 30 E> */ B(StackCheck),
75 B(LdaTheHole), 76 B(LdaTheHole),
76 B(Star), R(0), 77 B(Star), R(0),
77 /* 34 S> */ B(LdaTheHole), 78 /* 34 S> */ B(LdaTheHole),
78 B(Star), R(3), 79 B(Star), R(3),
79 B(CreateClosure), U8(0), U8(2), 80 B(CreateClosure), U8(0), U8(2),
80 B(Star), R(4), 81 B(Star), R(4),
81 B(LdaSmi), U8(34), 82 B(LdaSmi), U8(34),
82 B(Star), R(5), 83 B(Star), R(5),
83 B(Wide), B(LdaSmi), U16(148), 84 B(Wide), B(LdaSmi), U16(148),
84 B(Star), R(6), 85 B(Star), R(6),
85 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), 86 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
86 B(Star), R(3), 87 B(Star), R(3),
87 B(LdrNamedProperty), R(3), U8(1), U8(2), R(4), 88 B(LdaNamedProperty), R(3), U8(1), U8(2),
89 B(Star), R(4),
88 B(LdaConstant), U8(2), 90 B(LdaConstant), U8(2),
89 B(ToName), R(6), 91 B(ToName), R(6),
90 B(CreateClosure), U8(3), U8(2), 92 B(CreateClosure), U8(3), U8(2),
91 B(Star), R(7), 93 B(Star), R(7),
92 B(LdaSmi), U8(2), 94 B(LdaSmi), U8(2),
93 B(Star), R(8), 95 B(Star), R(8),
94 B(LdaZero), 96 B(LdaZero),
95 B(Star), R(9), 97 B(Star), R(9),
96 B(Mov), R(4), R(5), 98 B(Mov), R(4), R(5),
97 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5), 99 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5),
(...skipping 17 matching lines...) Expand all
115 snippet: " 117 snippet: "
116 var n0 = 'a'; 118 var n0 = 'a';
117 var n1 = 'b'; 119 var n1 = 'b';
118 class N { 120 class N {
119 [n0]() { return n0; } 121 [n0]() { return n0; }
120 static [n1]() { return n1; } 122 static [n1]() { return n1; }
121 } 123 }
122 " 124 "
123 frame size: 11 125 frame size: 11
124 parameter count: 1 126 parameter count: 1
125 bytecode array length: 120 127 bytecode array length: 121
126 bytecodes: [ 128 bytecodes: [
127 B(CreateFunctionContext), U8(2), 129 B(CreateFunctionContext), U8(2),
128 B(PushContext), R(3), 130 B(PushContext), R(3),
129 B(LdaTheHole), 131 B(LdaTheHole),
130 B(Star), R(2), 132 B(Star), R(2),
131 /* 30 E> */ B(StackCheck), 133 /* 30 E> */ B(StackCheck),
132 /* 43 S> */ B(LdaConstant), U8(0), 134 /* 43 S> */ B(LdaConstant), U8(0),
133 /* 43 E> */ B(StaCurrentContextSlot), U8(4), 135 /* 43 E> */ B(StaCurrentContextSlot), U8(4),
134 /* 57 S> */ B(LdaConstant), U8(1), 136 /* 57 S> */ B(LdaConstant), U8(1),
135 /* 57 E> */ B(StaCurrentContextSlot), U8(5), 137 /* 57 E> */ B(StaCurrentContextSlot), U8(5),
136 B(LdaTheHole), 138 B(LdaTheHole),
137 B(Star), R(0), 139 B(Star), R(0),
138 /* 62 S> */ B(LdaTheHole), 140 /* 62 S> */ B(LdaTheHole),
139 B(Star), R(4), 141 B(Star), R(4),
140 B(CreateClosure), U8(2), U8(2), 142 B(CreateClosure), U8(2), U8(2),
141 B(Star), R(5), 143 B(Star), R(5),
142 B(LdaSmi), U8(62), 144 B(LdaSmi), U8(62),
143 B(Star), R(6), 145 B(Star), R(6),
144 B(Wide), B(LdaSmi), U16(128), 146 B(Wide), B(LdaSmi), U16(128),
145 B(Star), R(7), 147 B(Star), R(7),
146 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 148 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
147 B(Star), R(4), 149 B(Star), R(4),
148 B(LdrNamedProperty), R(4), U8(3), U8(2), R(5), 150 B(LdaNamedProperty), R(4), U8(3), U8(2),
151 B(Star), R(5),
149 /* 75 E> */ B(LdaCurrentContextSlot), U8(4), 152 /* 75 E> */ B(LdaCurrentContextSlot), U8(4),
150 B(ToName), R(7), 153 B(ToName), R(7),
151 B(CreateClosure), U8(4), U8(2), 154 B(CreateClosure), U8(4), U8(2),
152 B(Star), R(8), 155 B(Star), R(8),
153 B(LdaSmi), U8(2), 156 B(LdaSmi), U8(2),
154 B(Star), R(9), 157 B(Star), R(9),
155 B(LdaSmi), U8(1), 158 B(LdaSmi), U8(1),
156 B(Star), R(10), 159 B(Star), R(10),
157 B(Mov), R(5), R(6), 160 B(Mov), R(5), R(6),
158 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5), 161 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5),
(...skipping 28 matching lines...) Expand all
187 ] 190 ]
188 191
189 --- 192 ---
190 snippet: " 193 snippet: "
191 var count = 0; 194 var count = 0;
192 class C { constructor() { count++; }} 195 class C { constructor() { count++; }}
193 return new C(); 196 return new C();
194 " 197 "
195 frame size: 8 198 frame size: 8
196 parameter count: 1 199 parameter count: 1
197 bytecode array length: 60 200 bytecode array length: 61
198 bytecodes: [ 201 bytecodes: [
199 B(CreateFunctionContext), U8(1), 202 B(CreateFunctionContext), U8(1),
200 B(PushContext), R(3), 203 B(PushContext), R(3),
201 B(LdaTheHole), 204 B(LdaTheHole),
202 B(Star), R(2), 205 B(Star), R(2),
203 /* 30 E> */ B(StackCheck), 206 /* 30 E> */ B(StackCheck),
204 /* 46 S> */ B(LdaZero), 207 /* 46 S> */ B(LdaZero),
205 /* 46 E> */ B(StaCurrentContextSlot), U8(4), 208 /* 46 E> */ B(StaCurrentContextSlot), U8(4),
206 B(LdaTheHole), 209 B(LdaTheHole),
207 B(Star), R(0), 210 B(Star), R(0),
208 /* 49 S> */ B(LdaTheHole), 211 /* 49 S> */ B(LdaTheHole),
209 B(Star), R(4), 212 B(Star), R(4),
210 B(CreateClosure), U8(0), U8(2), 213 B(CreateClosure), U8(0), U8(2),
211 B(Star), R(5), 214 B(Star), R(5),
212 B(LdaSmi), U8(49), 215 B(LdaSmi), U8(49),
213 B(Star), R(6), 216 B(Star), R(6),
214 B(LdaSmi), U8(86), 217 B(LdaSmi), U8(86),
215 B(Star), R(7), 218 B(Star), R(7),
216 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), 219 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
217 B(Star), R(4), 220 B(Star), R(4),
218 B(LdrNamedProperty), R(4), U8(1), U8(2), R(5), 221 B(LdaNamedProperty), R(4), U8(1), U8(2),
222 B(Star), R(5),
219 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 223 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
220 B(Star), R(0), 224 B(Star), R(0),
221 B(Star), R(1), 225 B(Star), R(1),
222 B(Star), R(2), 226 B(Star), R(2),
223 /* 87 S> */ B(Nop), 227 /* 87 S> */ B(Nop),
224 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4), 228 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4),
225 /* 103 S> */ B(Return), 229 /* 103 S> */ B(Return),
226 ] 230 ]
227 constant pool: [ 231 constant pool: [
228 SHARED_FUNCTION_INFO_TYPE, 232 SHARED_FUNCTION_INFO_TYPE,
229 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 233 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
230 ] 234 ]
231 handlers: [ 235 handlers: [
232 ] 236 ]
233 237
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698