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

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

Issue 2177273002: Make FastNewFunctionContextStub take slots parameter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased 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 | « 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
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; }
15 15
16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( 16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific(
17 CallInterfaceDescriptorData* data, int register_parameter_count) { 17 CallInterfaceDescriptorData* data, int register_parameter_count) {
18 const Register default_stub_registers[] = {r0, r1, r2, r3, r4}; 18 const Register default_stub_registers[] = {r0, r1, r2, r3, r4};
19 CHECK_LE(static_cast<size_t>(register_parameter_count), 19 CHECK_LE(static_cast<size_t>(register_parameter_count),
20 arraysize(default_stub_registers)); 20 arraysize(default_stub_registers));
21 data->InitializePlatformSpecific(register_parameter_count, 21 data->InitializePlatformSpecific(register_parameter_count,
22 default_stub_registers); 22 default_stub_registers);
23 } 23 }
24 24
25 const Register FastNewFunctionContextDescriptor::FunctionRegister() {
26 return r1;
27 }
28 const Register FastNewFunctionContextDescriptor::SlotsRegister() { return r0; }
29
25 const Register LoadDescriptor::ReceiverRegister() { return r1; } 30 const Register LoadDescriptor::ReceiverRegister() { return r1; }
26 const Register LoadDescriptor::NameRegister() { return r2; } 31 const Register LoadDescriptor::NameRegister() { return r2; }
27 const Register LoadDescriptor::SlotRegister() { return r0; } 32 const Register LoadDescriptor::SlotRegister() { return r0; }
28 33
29 34
30 const Register LoadWithVectorDescriptor::VectorRegister() { return r3; } 35 const Register LoadWithVectorDescriptor::VectorRegister() { return r3; }
31 36
32 37
33 const Register StoreDescriptor::ReceiverRegister() { return r1; } 38 const Register StoreDescriptor::ReceiverRegister() { return r1; }
34 const Register StoreDescriptor::NameRegister() { return r2; } 39 const Register StoreDescriptor::NameRegister() { return r2; }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r0; } 71 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r0; }
67 const Register GrowArrayElementsDescriptor::KeyRegister() { return r3; } 72 const Register GrowArrayElementsDescriptor::KeyRegister() { return r3; }
68 73
69 74
70 void FastNewClosureDescriptor::InitializePlatformSpecific( 75 void FastNewClosureDescriptor::InitializePlatformSpecific(
71 CallInterfaceDescriptorData* data) { 76 CallInterfaceDescriptorData* data) {
72 Register registers[] = {r2}; 77 Register registers[] = {r2};
73 data->InitializePlatformSpecific(arraysize(registers), registers); 78 data->InitializePlatformSpecific(arraysize(registers), registers);
74 } 79 }
75 80
76 void FastNewFunctionContextDescriptor::InitializePlatformSpecific(
77 CallInterfaceDescriptorData* data) {
78 Register registers[] = {r1};
79 data->InitializePlatformSpecific(arraysize(registers), registers);
80 }
81
82 void FastNewObjectDescriptor::InitializePlatformSpecific( 81 void FastNewObjectDescriptor::InitializePlatformSpecific(
83 CallInterfaceDescriptorData* data) { 82 CallInterfaceDescriptorData* data) {
84 Register registers[] = {r1, r3}; 83 Register registers[] = {r1, r3};
85 data->InitializePlatformSpecific(arraysize(registers), registers); 84 data->InitializePlatformSpecific(arraysize(registers), registers);
86 } 85 }
87 86
88 void FastNewRestParameterDescriptor::InitializePlatformSpecific( 87 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
89 CallInterfaceDescriptorData* data) { 88 CallInterfaceDescriptorData* data) {
90 Register registers[] = {r1}; 89 Register registers[] = {r1};
91 data->InitializePlatformSpecific(arraysize(registers), registers); 90 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 r1, // the JSGeneratorObject to resume 425 r1, // the JSGeneratorObject to resume
427 r2 // the resume mode (tagged) 426 r2 // the resume mode (tagged)
428 }; 427 };
429 data->InitializePlatformSpecific(arraysize(registers), registers); 428 data->InitializePlatformSpecific(arraysize(registers), registers);
430 } 429 }
431 430
432 } // namespace internal 431 } // namespace internal
433 } // namespace v8 432 } // namespace v8
434 433
435 #endif // V8_TARGET_ARCH_ARM 434 #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