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

Side by Side Diff: src/arm/interface-descriptors-arm.cc

Issue 2930623002: [builtins] Start refactoring the Apply builtin. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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
« no previous file with comments | « BUILD.gn ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 151
152 void CallTrampolineDescriptor::InitializePlatformSpecific( 152 void CallTrampolineDescriptor::InitializePlatformSpecific(
153 CallInterfaceDescriptorData* data) { 153 CallInterfaceDescriptorData* data) {
154 // r0 : number of arguments 154 // r0 : number of arguments
155 // r1 : the target to call 155 // r1 : the target to call
156 Register registers[] = {r1, r0}; 156 Register registers[] = {r1, r0};
157 data->InitializePlatformSpecific(arraysize(registers), registers); 157 data->InitializePlatformSpecific(arraysize(registers), registers);
158 } 158 }
159 159
160 void CallVarargsDescriptor::InitializePlatformSpecific(
161 CallInterfaceDescriptorData* data) {
162 // r0 : number of arguments (on the stack, not including receiver)
163 // r1 : the target to call
164 // r2 : arguments list (FixedArray)
165 // r4 : arguments list length (untagged)
166 Register registers[] = {r1, r0, r2, r4};
167 data->InitializePlatformSpecific(arraysize(registers), registers);
168 }
169
160 void CallForwardVarargsDescriptor::InitializePlatformSpecific( 170 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
161 CallInterfaceDescriptorData* data) { 171 CallInterfaceDescriptorData* data) {
162 // r0 : number of arguments 172 // r0 : number of arguments
163 // r2 : start index (to support rest parameters) 173 // r2 : start index (to support rest parameters)
164 // r1 : the target to call 174 // r1 : the target to call
165 Register registers[] = {r1, r0, r2}; 175 Register registers[] = {r1, r0, r2};
166 data->InitializePlatformSpecific(arraysize(registers), registers); 176 data->InitializePlatformSpecific(arraysize(registers), registers);
167 } 177 }
168 178
179 void CallWithArrayLikeDescriptor::InitializePlatformSpecific(
180 CallInterfaceDescriptorData* data) {
181 // r1 : the target to call
182 // r2 : the arguments list
183 Register registers[] = {r1, r2};
184 data->InitializePlatformSpecific(arraysize(registers), registers);
185 }
186
187 void ConstructVarargsDescriptor::InitializePlatformSpecific(
188 CallInterfaceDescriptorData* data) {
189 // r0 : number of arguments (on the stack, not including receiver)
190 // r1 : the target to call
191 // r3 : the new target
192 // r2 : arguments list (FixedArray)
193 // r4 : arguments list length (untagged)
194 Register registers[] = {r1, r3, r0, r2, r4};
195 data->InitializePlatformSpecific(arraysize(registers), registers);
196 }
197
169 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( 198 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific(
170 CallInterfaceDescriptorData* data) { 199 CallInterfaceDescriptorData* data) {
171 // r0 : number of arguments 200 // r0 : number of arguments
172 // r3 : the new target 201 // r3 : the new target
173 // r2 : start index (to support rest parameters) 202 // r2 : start index (to support rest parameters)
174 // r1 : the target to call 203 // r1 : the target to call
175 Register registers[] = {r1, r3, r0, r2}; 204 Register registers[] = {r1, r3, r0, r2};
176 data->InitializePlatformSpecific(arraysize(registers), registers); 205 data->InitializePlatformSpecific(arraysize(registers), registers);
177 } 206 }
178 207
208 void ConstructWithArrayLikeDescriptor::InitializePlatformSpecific(
209 CallInterfaceDescriptorData* data) {
210 // r1 : the target to call
211 // r3 : the new target
212 // r2 : the arguments list
213 Register registers[] = {r1, r3, r2};
214 data->InitializePlatformSpecific(arraysize(registers), registers);
215 }
216
179 void ConstructStubDescriptor::InitializePlatformSpecific( 217 void ConstructStubDescriptor::InitializePlatformSpecific(
180 CallInterfaceDescriptorData* data) { 218 CallInterfaceDescriptorData* data) {
181 // r0 : number of arguments 219 // r0 : number of arguments
182 // r1 : the target to call 220 // r1 : the target to call
183 // r3 : the new target 221 // r3 : the new target
184 // r2 : allocation site or undefined 222 // r2 : allocation site or undefined
185 Register registers[] = {r1, r3, r0, r2}; 223 Register registers[] = {r1, r3, r0, r2};
186 data->InitializePlatformSpecific(arraysize(registers), registers); 224 data->InitializePlatformSpecific(arraysize(registers), registers);
187 } 225 }
188 226
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 Register registers[] = { 429 Register registers[] = {
392 r1, // loaded new FP 430 r1, // loaded new FP
393 }; 431 };
394 data->InitializePlatformSpecific(arraysize(registers), registers); 432 data->InitializePlatformSpecific(arraysize(registers), registers);
395 } 433 }
396 434
397 } // namespace internal 435 } // namespace internal
398 } // namespace v8 436 } // namespace v8
399 437
400 #endif // V8_TARGET_ARCH_ARM 438 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698