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/mips64/interface-descriptors-mips64.cc

Issue 2002143002: [stubs] An easier way of defining a stub call interface descriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « src/mips/interface-descriptors-mips.cc ('k') | src/ppc/interface-descriptors-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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(
15 CallInterfaceDescriptorData* data, int register_parameter_count) {
16 const Register default_stub_registers[] = {a0, a1, a2, a3, a4};
17 CHECK_LE(static_cast<size_t>(register_parameter_count),
18 arraysize(default_stub_registers));
19 data->InitializePlatformSpecific(register_parameter_count,
20 default_stub_registers);
21 }
14 22
15 const Register LoadDescriptor::ReceiverRegister() { return a1; } 23 const Register LoadDescriptor::ReceiverRegister() { return a1; }
16 const Register LoadDescriptor::NameRegister() { return a2; } 24 const Register LoadDescriptor::NameRegister() { return a2; }
17 const Register LoadDescriptor::SlotRegister() { return a0; } 25 const Register LoadDescriptor::SlotRegister() { return a0; }
18 26
19 27
20 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; } 28 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; }
21 29
22 30
23 const Register StoreDescriptor::ReceiverRegister() { return a1; } 31 const Register StoreDescriptor::ReceiverRegister() { return a1; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 64
57 65
58 const Register MathPowIntegerDescriptor::exponent() { 66 const Register MathPowIntegerDescriptor::exponent() {
59 return MathPowTaggedDescriptor::exponent(); 67 return MathPowTaggedDescriptor::exponent();
60 } 68 }
61 69
62 70
63 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } 71 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; }
64 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } 72 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; }
65 73
66 const Register HasPropertyDescriptor::ObjectRegister() { return a0; }
67 const Register HasPropertyDescriptor::KeyRegister() { return a3; }
68 74
69 void FastNewClosureDescriptor::InitializePlatformSpecific( 75 void FastNewClosureDescriptor::InitializePlatformSpecific(
70 CallInterfaceDescriptorData* data) { 76 CallInterfaceDescriptorData* data) {
71 Register registers[] = {a2}; 77 Register registers[] = {a2};
72 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 78 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
73 } 79 }
74 80
75 81
76 void FastNewContextDescriptor::InitializePlatformSpecific( 82 void FastNewContextDescriptor::InitializePlatformSpecific(
77 CallInterfaceDescriptorData* data) { 83 CallInterfaceDescriptorData* data) {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 a1, // the JSGeneratorObject to resume 419 a1, // the JSGeneratorObject to resume
414 a2 // the resume mode (tagged) 420 a2 // the resume mode (tagged)
415 }; 421 };
416 data->InitializePlatformSpecific(arraysize(registers), registers); 422 data->InitializePlatformSpecific(arraysize(registers), registers);
417 } 423 }
418 424
419 } // namespace internal 425 } // namespace internal
420 } // namespace v8 426 } // namespace v8
421 427
422 #endif // V8_TARGET_ARCH_MIPS64 428 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/ppc/interface-descriptors-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698