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

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

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Fix typo. 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: 9
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 75 17 bytecode array length: 70
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(LdaNamedProperty), R(3), U8(1), U8(2), 34 B(LdaNamedProperty), R(3), U8(1), U8(2),
35 B(Star), R(4), 35 B(Star), R(4),
36 B(LdaConstant), U8(2), 36 B(LdaConstant), U8(2),
37 B(ToName), R(6), 37 B(ToName), R(6),
38 B(CreateClosure), U8(3), U8(2), 38 B(CreateClosure), U8(3), U8(2),
39 B(Star), R(7), 39 B(Star), R(7),
40 B(LdaSmi), U8(2), 40 B(LdaSmi), U8(2),
41 B(Star), R(8), 41 B(Star), R(8),
42 B(LdaZero), 42 B(LdaZero),
43 B(Star), R(9), 43 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8),
44 B(Mov), R(4), R(5),
45 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5),
46 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), 44 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
47 B(Star), R(0), 45 B(Star), R(0),
48 B(Star), R(1), 46 B(Star), R(1),
49 B(Star), R(2), 47 B(Star), R(2),
50 B(LdaUndefined), 48 B(LdaUndefined),
51 /* 149 S> */ B(Return), 49 /* 149 S> */ B(Return),
52 ] 50 ]
53 constant pool: [ 51 constant pool: [
54 SHARED_FUNCTION_INFO_TYPE, 52 SHARED_FUNCTION_INFO_TYPE,
55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 53 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
56 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], 54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"],
57 SHARED_FUNCTION_INFO_TYPE, 55 SHARED_FUNCTION_INFO_TYPE,
58 ] 56 ]
59 handlers: [ 57 handlers: [
60 ] 58 ]
61 59
62 --- 60 ---
63 snippet: " 61 snippet: "
64 class person { 62 class person {
65 constructor(name) { this.name = name; } 63 constructor(name) { this.name = name; }
66 speak() { console.log(this.name + ' is speaking.'); } 64 speak() { console.log(this.name + ' is speaking.'); }
67 } 65 }
68 " 66 "
69 frame size: 10 67 frame size: 9
70 parameter count: 1 68 parameter count: 1
71 bytecode array length: 75 69 bytecode array length: 70
72 bytecodes: [ 70 bytecodes: [
73 B(LdaTheHole), 71 B(LdaTheHole),
74 B(Star), R(2), 72 B(Star), R(2),
75 /* 30 E> */ B(StackCheck), 73 /* 30 E> */ B(StackCheck),
76 B(LdaTheHole), 74 B(LdaTheHole),
77 B(Star), R(0), 75 B(Star), R(0),
78 /* 34 S> */ B(LdaTheHole), 76 /* 34 S> */ B(LdaTheHole),
79 B(Star), R(3), 77 B(Star), R(3),
80 B(CreateClosure), U8(0), U8(2), 78 B(CreateClosure), U8(0), U8(2),
81 B(Star), R(4), 79 B(Star), R(4),
82 B(LdaSmi), U8(34), 80 B(LdaSmi), U8(34),
83 B(Star), R(5), 81 B(Star), R(5),
84 B(Wide), B(LdaSmi), U16(148), 82 B(Wide), B(LdaSmi), U16(148),
85 B(Star), R(6), 83 B(Star), R(6),
86 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), 84 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
87 B(Star), R(3), 85 B(Star), R(3),
88 B(LdaNamedProperty), R(3), U8(1), U8(2), 86 B(LdaNamedProperty), R(3), U8(1), U8(2),
89 B(Star), R(4), 87 B(Star), R(4),
90 B(LdaConstant), U8(2), 88 B(LdaConstant), U8(2),
91 B(ToName), R(6), 89 B(ToName), R(6),
92 B(CreateClosure), U8(3), U8(2), 90 B(CreateClosure), U8(3), U8(2),
93 B(Star), R(7), 91 B(Star), R(7),
94 B(LdaSmi), U8(2), 92 B(LdaSmi), U8(2),
95 B(Star), R(8), 93 B(Star), R(8),
96 B(LdaZero), 94 B(LdaZero),
97 B(Star), R(9), 95 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8),
98 B(Mov), R(4), R(5),
99 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5) , U8(5),
100 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), 96 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
101 B(Star), R(0), 97 B(Star), R(0),
102 B(Star), R(1), 98 B(Star), R(1),
103 B(Star), R(2), 99 B(Star), R(2),
104 B(LdaUndefined), 100 B(LdaUndefined),
105 /* 149 S> */ B(Return), 101 /* 149 S> */ B(Return),
106 ] 102 ]
107 constant pool: [ 103 constant pool: [
108 SHARED_FUNCTION_INFO_TYPE, 104 SHARED_FUNCTION_INFO_TYPE,
109 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 105 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
110 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], 106 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"],
111 SHARED_FUNCTION_INFO_TYPE, 107 SHARED_FUNCTION_INFO_TYPE,
112 ] 108 ]
113 handlers: [ 109 handlers: [
114 ] 110 ]
115 111
116 --- 112 ---
117 snippet: " 113 snippet: "
118 var n0 = 'a'; 114 var n0 = 'a';
119 var n1 = 'b'; 115 var n1 = 'b';
120 class N { 116 class N {
121 [n0]() { return n0; } 117 [n0]() { return n0; }
122 static [n1]() { return n1; } 118 static [n1]() { return n1; }
123 } 119 }
124 " 120 "
125 frame size: 11 121 frame size: 10
126 parameter count: 1 122 parameter count: 1
127 bytecode array length: 121 123 bytecode array length: 114
128 bytecodes: [ 124 bytecodes: [
129 B(CreateFunctionContext), U8(2), 125 B(CreateFunctionContext), U8(2),
130 B(PushContext), R(3), 126 B(PushContext), R(3),
131 B(LdaTheHole), 127 B(LdaTheHole),
132 B(Star), R(2), 128 B(Star), R(2),
133 /* 30 E> */ B(StackCheck), 129 /* 30 E> */ B(StackCheck),
134 /* 43 S> */ B(LdaConstant), U8(0), 130 /* 43 S> */ B(LdaConstant), U8(0),
135 /* 43 E> */ B(StaCurrentContextSlot), U8(4), 131 /* 43 E> */ B(StaCurrentContextSlot), U8(4),
136 /* 57 S> */ B(LdaConstant), U8(1), 132 /* 57 S> */ B(LdaConstant), U8(1),
137 /* 57 E> */ B(StaCurrentContextSlot), U8(5), 133 /* 57 E> */ B(StaCurrentContextSlot), U8(5),
(...skipping 11 matching lines...) Expand all
149 B(Star), R(4), 145 B(Star), R(4),
150 B(LdaNamedProperty), R(4), U8(3), U8(2), 146 B(LdaNamedProperty), R(4), U8(3), U8(2),
151 B(Star), R(5), 147 B(Star), R(5),
152 B(LdaCurrentContextSlot), U8(4), 148 B(LdaCurrentContextSlot), U8(4),
153 /* 75 E> */ B(ToName), R(7), 149 /* 75 E> */ B(ToName), R(7),
154 B(CreateClosure), U8(4), U8(2), 150 B(CreateClosure), U8(4), U8(2),
155 B(Star), R(8), 151 B(Star), R(8),
156 B(LdaSmi), U8(2), 152 B(LdaSmi), U8(2),
157 B(Star), R(9), 153 B(Star), R(9),
158 B(LdaSmi), U8(1), 154 B(LdaSmi), U8(1),
159 B(Star), R(10), 155 B(StaDataPropertyInLiteral), R(5), R(7), R(8), R(9),
160 B(Mov), R(5), R(6),
161 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5),
162 B(LdaCurrentContextSlot), U8(5), 156 B(LdaCurrentContextSlot), U8(5),
163 /* 106 E> */ B(ToName), R(7), 157 /* 106 E> */ B(ToName), R(7),
164 B(LdaConstant), U8(3), 158 B(LdaConstant), U8(3),
165 B(TestEqualStrict), R(7), U8(0), 159 B(TestEqualStrict), R(7), U8(0),
166 B(Mov), R(4), R(6), 160 B(Mov), R(4), R(6),
167 B(JumpIfToBooleanFalse), U8(7), 161 B(JumpIfToBooleanFalse), U8(7),
168 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0), 162 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
169 B(CreateClosure), U8(5), U8(2), 163 B(CreateClosure), U8(5), U8(2),
170 B(Star), R(8), 164 B(Star), R(8),
171 B(LdaSmi), U8(1), 165 B(LdaSmi), U8(1),
172 B(Star), R(10), 166 B(StaDataPropertyInLiteral), R(6), R(7), R(8), R(9),
173 B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6) , U8(5),
174 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), 167 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
175 B(Star), R(0), 168 B(Star), R(0),
176 B(Star), R(1), 169 B(Star), R(1),
177 B(Star), R(2), 170 B(Star), R(2),
178 B(LdaUndefined), 171 B(LdaUndefined),
179 /* 129 S> */ B(Return), 172 /* 129 S> */ B(Return),
180 ] 173 ]
181 constant pool: [ 174 constant pool: [
182 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 175 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
183 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"], 176 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4), 221 /* 94 E> */ B(New), R(2), R(0), U8(0), U8(4),
229 /* 103 S> */ B(Return), 222 /* 103 S> */ B(Return),
230 ] 223 ]
231 constant pool: [ 224 constant pool: [
232 SHARED_FUNCTION_INFO_TYPE, 225 SHARED_FUNCTION_INFO_TYPE,
233 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 226 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
234 ] 227 ]
235 handlers: [ 228 handlers: [
236 ] 229 ]
237 230
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698