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

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

Issue 2412453005: [stubs] Refactor the CallICStub to pass the number of arguments. (Closed)
Patch Set: Created 4 years, 2 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/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific( 156 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific(
157 CallInterfaceDescriptorData* data) { 157 CallInterfaceDescriptorData* data) {
158 Register registers[] = {r1, r3}; 158 Register registers[] = {r1, r3};
159 data->InitializePlatformSpecific(arraysize(registers), registers); 159 data->InitializePlatformSpecific(arraysize(registers), registers);
160 } 160 }
161 161
162 162
163 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( 163 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
164 CallInterfaceDescriptorData* data) { 164 CallInterfaceDescriptorData* data) {
165 Register registers[] = {r1, r3, r2}; 165 Register registers[] = {r1, r0, r3, r2};
166 data->InitializePlatformSpecific(arraysize(registers), registers); 166 data->InitializePlatformSpecific(arraysize(registers), registers);
167 } 167 }
168 168
169 169
170 void CallConstructDescriptor::InitializePlatformSpecific( 170 void CallConstructDescriptor::InitializePlatformSpecific(
171 CallInterfaceDescriptorData* data) { 171 CallInterfaceDescriptorData* data) {
172 // r0 : number of arguments 172 // r0 : number of arguments
173 // r1 : the function to call 173 // r1 : the function to call
174 // r2 : feedback vector 174 // r2 : feedback vector
175 // r3 : slot in feedback vector (Smi, for RecordCallTarget) 175 // r3 : slot in feedback vector (Smi, for RecordCallTarget)
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 r1, // the JSGeneratorObject to resume 444 r1, // the JSGeneratorObject to resume
445 r2 // the resume mode (tagged) 445 r2 // the resume mode (tagged)
446 }; 446 };
447 data->InitializePlatformSpecific(arraysize(registers), registers); 447 data->InitializePlatformSpecific(arraysize(registers), registers);
448 } 448 }
449 449
450 } // namespace internal 450 } // namespace internal
451 } // namespace v8 451 } // namespace v8
452 452
453 #endif // V8_TARGET_ARCH_ARM 453 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698