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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase Created 4 years 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: no 6 wrap: no
7 test function name: test 7 test function name: test
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 constructor(x) { this.x_ = x; } 100 constructor(x) { this.x_ = x; }
101 } 101 }
102 class B extends A { 102 class B extends A {
103 constructor() { super(1); this.y_ = 2; } 103 constructor() { super(1); this.y_ = 2; }
104 } 104 }
105 test = new B().constructor; 105 test = new B().constructor;
106 })(); 106 })();
107 " 107 "
108 frame size: 4 108 frame size: 4
109 parameter count: 1 109 parameter count: 1
110 bytecode array length: 82 110 bytecode array length: 79
111 bytecodes: [ 111 bytecodes: [
112 B(Mov), R(closure), R(1), 112 B(Mov), R(closure), R(1),
113 B(Mov), R(new_target), R(0), 113 B(Mov), R(new_target), R(0),
114 B(Ldar), R(new_target), 114 B(Ldar), R(new_target),
115 /* 113 E> */ B(StackCheck), 115 /* 113 E> */ B(StackCheck),
116 /* 118 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) , 116 /* 118 S> */ B(Ldar), R(1),
117 B(Star), R(2), 117 B(GetSuperConstructor), R(2),
118 B(LdaSmi), U8(1), 118 B(LdaSmi), U8(1),
119 B(Star), R(3), 119 B(Star), R(3),
120 B(Ldar), R(0), 120 B(Ldar), R(0),
121 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(2), 121 /* 118 E> */ B(New), R(2), R(3), U8(1), U8(2),
122 B(Star), R(2), 122 B(Star), R(2),
123 B(Ldar), R(this), 123 B(Ldar), R(this),
124 B(JumpIfNotHole), U8(4), 124 B(JumpIfNotHole), U8(4),
125 B(Jump), U8(11), 125 B(Jump), U8(11),
126 B(LdaConstant), U8(0), 126 B(LdaConstant), U8(0),
127 B(Star), R(3), 127 B(Star), R(3),
(...skipping 29 matching lines...) Expand all
157 constructor() { this.x_ = 1; } 157 constructor() { this.x_ = 1; }
158 } 158 }
159 class B extends A { 159 class B extends A {
160 constructor() { super(); this.y_ = 2; } 160 constructor() { super(); this.y_ = 2; }
161 } 161 }
162 test = new B().constructor; 162 test = new B().constructor;
163 })(); 163 })();
164 " 164 "
165 frame size: 4 165 frame size: 4
166 parameter count: 1 166 parameter count: 1
167 bytecode array length: 78 167 bytecode array length: 75
168 bytecodes: [ 168 bytecodes: [
169 B(Mov), R(closure), R(1), 169 B(Mov), R(closure), R(1),
170 B(Mov), R(new_target), R(0), 170 B(Mov), R(new_target), R(0),
171 B(Ldar), R(new_target), 171 B(Ldar), R(new_target),
172 /* 112 E> */ B(StackCheck), 172 /* 112 E> */ B(StackCheck),
173 /* 117 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) , 173 /* 117 S> */ B(Ldar), R(1),
174 B(Star), R(2), 174 B(GetSuperConstructor), R(2),
175 B(Ldar), R(0), 175 B(Ldar), R(0),
176 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2), 176 /* 117 E> */ B(New), R(2), R(0), U8(0), U8(2),
177 B(Star), R(2), 177 B(Star), R(2),
178 B(Ldar), R(this), 178 B(Ldar), R(this),
179 B(JumpIfNotHole), U8(4), 179 B(JumpIfNotHole), U8(4),
180 B(Jump), U8(11), 180 B(Jump), U8(11),
181 B(LdaConstant), U8(0), 181 B(LdaConstant), U8(0),
182 B(Star), R(3), 182 B(Star), R(3),
183 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 183 /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
184 B(Mov), R(2), R(this), 184 B(Mov), R(2), R(this),
(...skipping 12 matching lines...) Expand all
197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
198 /* 139 S> */ B(Return), 198 /* 139 S> */ B(Return),
199 ] 199 ]
200 constant pool: [ 200 constant pool: [
201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], 201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"],
202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], 202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"],
203 ] 203 ]
204 handlers: [ 204 handlers: [
205 ] 205 ]
206 206
OLDNEW
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698