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

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

Issue 1823523002: [stubs] Unify the type conversion call interface descriptors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | src/arm64/interface-descriptors-arm64.cc » ('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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 106
107 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( 107 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific(
108 CallInterfaceDescriptorData* data) { 108 CallInterfaceDescriptorData* data) {
109 Register registers[] = {r1}; 109 Register registers[] = {r1};
110 data->InitializePlatformSpecific(arraysize(registers), registers); 110 data->InitializePlatformSpecific(arraysize(registers), registers);
111 } 111 }
112 112
113 113
114 void ToNumberDescriptor::InitializePlatformSpecific(
115 CallInterfaceDescriptorData* data) {
116 Register registers[] = {r0};
117 data->InitializePlatformSpecific(arraysize(registers), registers);
118 }
119
120
121 // static 114 // static
122 const Register ToLengthDescriptor::ReceiverRegister() { return r0; } 115 const Register TypeConversionDescriptor::ArgumentRegister() { return r0; }
123
124
125 // static
126 const Register ToStringDescriptor::ReceiverRegister() { return r0; }
127
128
129 // static
130 const Register ToNameDescriptor::ReceiverRegister() { return r0; }
131
132
133 // static
134 const Register ToObjectDescriptor::ReceiverRegister() { return r0; }
135
136
137 void NumberToStringDescriptor::InitializePlatformSpecific(
138 CallInterfaceDescriptorData* data) {
139 Register registers[] = {r0};
140 data->InitializePlatformSpecific(arraysize(registers), registers);
141 }
142
143 116
144 void TypeofDescriptor::InitializePlatformSpecific( 117 void TypeofDescriptor::InitializePlatformSpecific(
145 CallInterfaceDescriptorData* data) { 118 CallInterfaceDescriptorData* data) {
146 Register registers[] = {r3}; 119 Register registers[] = {r3};
147 data->InitializePlatformSpecific(arraysize(registers), registers); 120 data->InitializePlatformSpecific(arraysize(registers), registers);
148 } 121 }
149 122
150 123
151 void FastCloneRegExpDescriptor::InitializePlatformSpecific( 124 void FastCloneRegExpDescriptor::InitializePlatformSpecific(
152 CallInterfaceDescriptorData* data) { 125 CallInterfaceDescriptorData* data) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 285 }
313 286
314 287
315 void CompareDescriptor::InitializePlatformSpecific( 288 void CompareDescriptor::InitializePlatformSpecific(
316 CallInterfaceDescriptorData* data) { 289 CallInterfaceDescriptorData* data) {
317 Register registers[] = {r1, r0}; 290 Register registers[] = {r1, r0};
318 data->InitializePlatformSpecific(arraysize(registers), registers); 291 data->InitializePlatformSpecific(arraysize(registers), registers);
319 } 292 }
320 293
321 294
322 void ToBooleanDescriptor::InitializePlatformSpecific(
323 CallInterfaceDescriptorData* data) {
324 Register registers[] = {r0};
325 data->InitializePlatformSpecific(arraysize(registers), registers);
326 }
327
328
329 void BinaryOpDescriptor::InitializePlatformSpecific( 295 void BinaryOpDescriptor::InitializePlatformSpecific(
330 CallInterfaceDescriptorData* data) { 296 CallInterfaceDescriptorData* data) {
331 Register registers[] = {r1, r0}; 297 Register registers[] = {r1, r0};
332 data->InitializePlatformSpecific(arraysize(registers), registers); 298 data->InitializePlatformSpecific(arraysize(registers), registers);
333 } 299 }
334 300
335 301
336 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( 302 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific(
337 CallInterfaceDescriptorData* data) { 303 CallInterfaceDescriptorData* data) {
338 Register registers[] = {r2, r1, r0}; 304 Register registers[] = {r2, r1, r0};
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 r2, // address of first argument (argv) 419 r2, // address of first argument (argv)
454 r1 // the runtime function to call 420 r1 // the runtime function to call
455 }; 421 };
456 data->InitializePlatformSpecific(arraysize(registers), registers); 422 data->InitializePlatformSpecific(arraysize(registers), registers);
457 } 423 }
458 424
459 } // namespace internal 425 } // namespace internal
460 } // namespace v8 426 } // namespace v8
461 427
462 #endif // V8_TARGET_ARCH_ARM 428 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698