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

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

Issue 2200263003: PPC/s390: Make FastNewFunctionContextStub take slots parameter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/ppc/interface-descriptors-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 11
12 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } 12 const Register CallInterfaceDescriptor::ContextRegister() { return cp; }
13 13
14 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( 14 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific(
15 CallInterfaceDescriptorData* data, int register_parameter_count) { 15 CallInterfaceDescriptorData* data, int register_parameter_count) {
16 const Register default_stub_registers[] = {r2, r3, r4, r5, r6}; 16 const Register default_stub_registers[] = {r2, r3, r4, r5, r6};
17 CHECK_LE(static_cast<size_t>(register_parameter_count), 17 CHECK_LE(static_cast<size_t>(register_parameter_count),
18 arraysize(default_stub_registers)); 18 arraysize(default_stub_registers));
19 data->InitializePlatformSpecific(register_parameter_count, 19 data->InitializePlatformSpecific(register_parameter_count,
20 default_stub_registers); 20 default_stub_registers);
21 } 21 }
22 22
23 const Register FastNewFunctionContextDescriptor::FunctionRegister() {
24 return r3;
25 }
26 const Register FastNewFunctionContextDescriptor::SlotsRegister() { return r2; }
27
23 const Register LoadDescriptor::ReceiverRegister() { return r3; } 28 const Register LoadDescriptor::ReceiverRegister() { return r3; }
24 const Register LoadDescriptor::NameRegister() { return r4; } 29 const Register LoadDescriptor::NameRegister() { return r4; }
25 const Register LoadDescriptor::SlotRegister() { return r2; } 30 const Register LoadDescriptor::SlotRegister() { return r2; }
26 31
27 const Register LoadWithVectorDescriptor::VectorRegister() { return r5; } 32 const Register LoadWithVectorDescriptor::VectorRegister() { return r5; }
28 33
29 const Register StoreDescriptor::ReceiverRegister() { return r3; } 34 const Register StoreDescriptor::ReceiverRegister() { return r3; }
30 const Register StoreDescriptor::NameRegister() { return r4; } 35 const Register StoreDescriptor::NameRegister() { return r4; }
31 const Register StoreDescriptor::ValueRegister() { return r2; } 36 const Register StoreDescriptor::ValueRegister() { return r2; }
32 const Register StoreDescriptor::SlotRegister() { return r6; } 37 const Register StoreDescriptor::SlotRegister() { return r6; }
(...skipping 23 matching lines...) Expand all
56 61
57 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r2; } 62 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r2; }
58 const Register GrowArrayElementsDescriptor::KeyRegister() { return r5; } 63 const Register GrowArrayElementsDescriptor::KeyRegister() { return r5; }
59 64
60 void FastNewClosureDescriptor::InitializePlatformSpecific( 65 void FastNewClosureDescriptor::InitializePlatformSpecific(
61 CallInterfaceDescriptorData* data) { 66 CallInterfaceDescriptorData* data) {
62 Register registers[] = {r4}; 67 Register registers[] = {r4};
63 data->InitializePlatformSpecific(arraysize(registers), registers); 68 data->InitializePlatformSpecific(arraysize(registers), registers);
64 } 69 }
65 70
66 void FastNewFunctionContextDescriptor::InitializePlatformSpecific(
67 CallInterfaceDescriptorData* data) {
68 Register registers[] = {r3};
69 data->InitializePlatformSpecific(arraysize(registers), registers);
70 }
71
72 void FastNewObjectDescriptor::InitializePlatformSpecific( 71 void FastNewObjectDescriptor::InitializePlatformSpecific(
73 CallInterfaceDescriptorData* data) { 72 CallInterfaceDescriptorData* data) {
74 Register registers[] = {r3, r5}; 73 Register registers[] = {r3, r5};
75 data->InitializePlatformSpecific(arraysize(registers), registers); 74 data->InitializePlatformSpecific(arraysize(registers), registers);
76 } 75 }
77 76
78 void FastNewRestParameterDescriptor::InitializePlatformSpecific( 77 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
79 CallInterfaceDescriptorData* data) { 78 CallInterfaceDescriptorData* data) {
80 Register registers[] = {r3}; 79 Register registers[] = {r3};
81 data->InitializePlatformSpecific(arraysize(registers), registers); 80 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 r3, // the JSGeneratorObject to resume 370 r3, // the JSGeneratorObject to resume
372 r4 // the resume mode (tagged) 371 r4 // the resume mode (tagged)
373 }; 372 };
374 data->InitializePlatformSpecific(arraysize(registers), registers); 373 data->InitializePlatformSpecific(arraysize(registers), registers);
375 } 374 }
376 375
377 } // namespace internal 376 } // namespace internal
378 } // namespace v8 377 } // namespace v8
379 378
380 #endif // V8_TARGET_ARCH_S390 379 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698