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

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

Issue 2557173004: [Interpreter] Allocate registers used as call arguments on-demand. (Closed)
Patch Set: 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 (function() { 98 (function() {
99 class A { 99 class A {
100 constructor(...args) { this.baseArgs = args; } 100 constructor(...args) { this.baseArgs = args; }
101 } 101 }
102 class B extends A { 102 class B extends A {
103 constructor(...args) { super(1, ...args, 1); } 103 constructor(...args) { super(1, ...args, 1); }
104 } 104 }
105 test = new B(1, 2, 3).constructor; 105 test = new B(1, 2, 3).constructor;
106 })(); 106 })();
107 " 107 "
108 frame size: 13 108 frame size: 9
109 parameter count: 1 109 parameter count: 1
110 bytecode array length: 96 110 bytecode array length: 96
111 bytecodes: [ 111 bytecodes: [
112 B(CreateRestParameter), 112 B(CreateRestParameter),
113 B(Star), R(2), 113 B(Star), R(2),
114 B(Mov), R(closure), R(1), 114 B(Mov), R(closure), R(1),
115 B(Mov), R(new_target), R(0), 115 B(Mov), R(new_target), R(0),
116 B(Ldar), R(new_target), 116 B(Ldar), R(new_target),
117 /* 128 E> */ B(StackCheck), 117 /* 128 E> */ B(StackCheck),
118 /* 140 S> */ B(LdaUndefined), 118 /* 140 S> */ B(LdaUndefined),
119 B(Star), R(3), 119 B(Star), R(3),
120 /* 140 E> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) , 120 /* 140 E> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1) ,
121 B(Star), R(4), 121 B(Star), R(4),
122 B(LdaUndefined), 122 B(LdaUndefined),
123 B(Star), R(5),
124 B(CreateArrayLiteral), U8(0), U8(0), U8(9),
125 B(Star), R(6),
126 B(LdaUndefined),
123 B(Star), R(7), 127 B(Star), R(7),
124 B(CreateArrayLiteral), U8(0), U8(0), U8(9), 128 B(Mov), R(2), R(8),
129 /* 152 E> */ B(CallJSRuntime), U8(156), R(7), U8(2),
130 B(Star), R(7),
131 B(CreateArrayLiteral), U8(1), U8(1), U8(9),
125 B(Star), R(8), 132 B(Star), R(8),
126 B(LdaUndefined), 133 B(CallJSRuntime), U8(155), R(5), U8(4),
127 B(Star), R(11),
128 B(Mov), R(2), R(12),
129 /* 152 E> */ B(CallJSRuntime), U8(156), R(11), U8(2),
130 B(Star), R(9),
131 B(CreateArrayLiteral), U8(1), U8(1), U8(9),
132 B(Star), R(10),
133 B(CallJSRuntime), U8(155), R(7), U8(4),
134 B(Star), R(5), 134 B(Star), R(5),
135 B(Mov), R(0), R(6), 135 B(Mov), R(0), R(6),
136 /* 140 E> */ B(CallJSRuntime), U8(152), R(3), U8(4), 136 /* 140 E> */ B(CallJSRuntime), U8(152), R(3), U8(4),
137 B(Star), R(3), 137 B(Star), R(3),
138 B(Ldar), R(this), 138 B(Ldar), R(this),
139 B(JumpIfNotHole), U8(4), 139 B(JumpIfNotHole), U8(4),
140 B(Jump), U8(11), 140 B(Jump), U8(11),
141 B(LdaConstant), U8(2), 141 B(LdaConstant), U8(2),
142 B(Star), R(4), 142 B(Star), R(4),
143 /* 140 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), 143 /* 140 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
144 B(Mov), R(3), R(this), 144 B(Mov), R(3), R(this),
145 B(Ldar), R(this), 145 B(Ldar), R(this),
146 B(JumpIfNotHole), U8(11), 146 B(JumpIfNotHole), U8(11),
147 B(LdaConstant), U8(2), 147 B(LdaConstant), U8(2),
148 B(Star), R(3), 148 B(Star), R(3),
149 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 149 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
150 /* 162 S> */ B(Return), 150 /* 162 S> */ B(Return),
151 ] 151 ]
152 constant pool: [ 152 constant pool: [
153 FIXED_ARRAY_TYPE, 153 FIXED_ARRAY_TYPE,
154 FIXED_ARRAY_TYPE, 154 FIXED_ARRAY_TYPE,
155 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], 155 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"],
156 ] 156 ]
157 handlers: [ 157 handlers: [
158 ] 158 ]
159 159
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698