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

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

Issue 2325133002: [interpreter] Fix destroyed new.target register use. (Closed)
Patch Set: Recement. Created 4 years, 3 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 execute: yes 6 execute: yes
7 wrap: no 7 wrap: no
8 test function name: test 8 test function name: test
9 9
10 --- 10 ---
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 constructor(x) { this.x_ = x; } 98 constructor(x) { this.x_ = x; }
99 } 99 }
100 class B extends A { 100 class B extends A {
101 constructor() { super(1); this.y_ = 2; } 101 constructor() { super(1); this.y_ = 2; }
102 } 102 }
103 test = new B().constructor; 103 test = new B().constructor;
104 })(); 104 })();
105 " 105 "
106 frame size: 4 106 frame size: 4
107 parameter count: 1 107 parameter count: 1
108 bytecode array length: 80 108 bytecode array length: 82
109 bytecodes: [ 109 bytecodes: [
110 B(Mov), R(closure), R(1), 110 B(Mov), R(closure), R(1),
111 B(Mov), R(new_target), R(0), 111 B(Mov), R(new_target), R(0),
112 B(Ldar), R(new_target),
112 /* 113 E> */ B(StackCheck), 113 /* 113 E> */ B(StackCheck),
113 /* 118 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(closure), U8(1), 114 /* 118 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) ,
114 B(Star), R(2), 115 B(Star), R(2),
115 B(LdaSmi), U8(1), 116 B(LdaSmi), U8(1),
116 B(Star), R(3), 117 B(Star), R(3),
117 B(Ldar), R(new_target), 118 B(Ldar), R(0),
118 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(0), 119 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(0),
119 B(Star), R(2), 120 B(Star), R(2),
120 B(Ldar), R(this), 121 B(Ldar), R(this),
121 B(JumpIfNotHole), U8(4), 122 B(JumpIfNotHole), U8(4),
122 B(Jump), U8(11), 123 B(Jump), U8(11),
123 B(LdaConstant), U8(0), 124 B(LdaConstant), U8(0),
124 B(Star), R(3), 125 B(Star), R(3),
125 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 126 /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
126 B(Mov), R(2), R(this), 127 B(Mov), R(2), R(this),
127 /* 128 S> */ B(Ldar), R(this), 128 /* 128 S> */ B(Ldar), R(this),
(...skipping 26 matching lines...) Expand all
154 constructor() { this.x_ = 1; } 155 constructor() { this.x_ = 1; }
155 } 156 }
156 class B extends A { 157 class B extends A {
157 constructor() { super(); this.y_ = 2; } 158 constructor() { super(); this.y_ = 2; }
158 } 159 }
159 test = new B().constructor; 160 test = new B().constructor;
160 })(); 161 })();
161 " 162 "
162 frame size: 4 163 frame size: 4
163 parameter count: 1 164 parameter count: 1
164 bytecode array length: 76 165 bytecode array length: 78
165 bytecodes: [ 166 bytecodes: [
166 B(Mov), R(closure), R(1), 167 B(Mov), R(closure), R(1),
167 B(Mov), R(new_target), R(0), 168 B(Mov), R(new_target), R(0),
169 B(Ldar), R(new_target),
168 /* 112 E> */ B(StackCheck), 170 /* 112 E> */ B(StackCheck),
169 /* 117 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(closure), U8(1), 171 /* 117 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) ,
170 B(Star), R(2), 172 B(Star), R(2),
171 B(Ldar), R(new_target), 173 B(Ldar), R(0),
172 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(0), 174 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(0),
173 B(Star), R(2), 175 B(Star), R(2),
174 B(Ldar), R(this), 176 B(Ldar), R(this),
175 B(JumpIfNotHole), U8(4), 177 B(JumpIfNotHole), U8(4),
176 B(Jump), U8(11), 178 B(Jump), U8(11),
177 B(LdaConstant), U8(0), 179 B(LdaConstant), U8(0),
178 B(Star), R(3), 180 B(Star), R(3),
179 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 181 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
180 B(Mov), R(2), R(this), 182 B(Mov), R(2), R(this),
181 /* 126 S> */ B(Ldar), R(this), 183 /* 126 S> */ B(Ldar), R(this),
(...skipping 11 matching lines...) Expand all
193 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 195 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
194 /* 139 S> */ B(Return), 196 /* 139 S> */ B(Return),
195 ] 197 ]
196 constant pool: [ 198 constant pool: [
197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], 199 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"],
198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], 200 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"],
199 ] 201 ]
200 handlers: [ 202 handlers: [
201 ] 203 ]
202 204
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | test/cctest/interpreter/bytecode_expectations/NewTarget.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698