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

Side by Side Diff: src/interface-descriptors.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 | « src/interface-descriptors.h ('k') | src/mips/interface-descriptors-mips.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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 namespace { 10 namespace {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 data->InitializePlatformSpecific(arraysize(registers), registers); 190 data->InitializePlatformSpecific(arraysize(registers), registers);
191 } 191 }
192 192
193 193
194 void StringCompareDescriptor::InitializePlatformSpecific( 194 void StringCompareDescriptor::InitializePlatformSpecific(
195 CallInterfaceDescriptorData* data) { 195 CallInterfaceDescriptorData* data) {
196 Register registers[] = {LeftRegister(), RightRegister()}; 196 Register registers[] = {LeftRegister(), RightRegister()};
197 data->InitializePlatformSpecific(arraysize(registers), registers); 197 data->InitializePlatformSpecific(arraysize(registers), registers);
198 } 198 }
199 199
200 200 void TypeConversionDescriptor::InitializePlatformSpecific(
201 void ToLengthDescriptor::InitializePlatformSpecific(
202 CallInterfaceDescriptorData* data) { 201 CallInterfaceDescriptorData* data) {
203 Register registers[] = {ReceiverRegister()}; 202 Register registers[] = {ArgumentRegister()};
204 data->InitializePlatformSpecific(arraysize(registers), registers); 203 data->InitializePlatformSpecific(arraysize(registers), registers);
205 } 204 }
206 205
207
208 void ToStringDescriptor::InitializePlatformSpecific(
209 CallInterfaceDescriptorData* data) {
210 Register registers[] = {ReceiverRegister()};
211 data->InitializePlatformSpecific(arraysize(registers), registers);
212 }
213
214
215 void ToNameDescriptor::InitializePlatformSpecific(
216 CallInterfaceDescriptorData* data) {
217 Register registers[] = {ReceiverRegister()};
218 data->InitializePlatformSpecific(arraysize(registers), registers);
219 }
220
221
222 void ToObjectDescriptor::InitializePlatformSpecific(
223 CallInterfaceDescriptorData* data) {
224 Register registers[] = {ReceiverRegister()};
225 data->InitializePlatformSpecific(arraysize(registers), registers);
226 }
227
228 206
229 void MathPowTaggedDescriptor::InitializePlatformSpecific( 207 void MathPowTaggedDescriptor::InitializePlatformSpecific(
230 CallInterfaceDescriptorData* data) { 208 CallInterfaceDescriptorData* data) {
231 Register registers[] = {exponent()}; 209 Register registers[] = {exponent()};
232 data->InitializePlatformSpecific(arraysize(registers), registers); 210 data->InitializePlatformSpecific(arraysize(registers), registers);
233 } 211 }
234 212
235 213
236 void MathPowIntegerDescriptor::InitializePlatformSpecific( 214 void MathPowIntegerDescriptor::InitializePlatformSpecific(
237 CallInterfaceDescriptorData* data) { 215 CallInterfaceDescriptorData* data) {
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 523 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
546 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); 524 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone));
547 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 525 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
548 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 526 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
549 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 527 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
550 return function; 528 return function;
551 } 529 }
552 530
553 } // namespace internal 531 } // namespace internal
554 } // namespace v8 532 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698