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

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

Issue 2670843002: [stubs] Also port the CallICStub to CSA. (Closed)
Patch Set: Introduce FullCodeGenerator::IntFromSlot. Created 3 years, 10 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/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 data->InitializePlatformSpecific(arraysize(registers), registers); 133 data->InitializePlatformSpecific(arraysize(registers), registers);
134 } 134 }
135 135
136 136
137 void CallFunctionDescriptor::InitializePlatformSpecific( 137 void CallFunctionDescriptor::InitializePlatformSpecific(
138 CallInterfaceDescriptorData* data) { 138 CallInterfaceDescriptorData* data) {
139 Register registers[] = {a1}; 139 Register registers[] = {a1};
140 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 140 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
141 } 141 }
142 142
143 143 void CallICTrampolineDescriptor::InitializePlatformSpecific(
144 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific(
145 CallInterfaceDescriptorData* data) { 144 CallInterfaceDescriptorData* data) {
146 Register registers[] = {a1, a0, a3}; 145 Register registers[] = {a1, a0, a3};
147 data->InitializePlatformSpecific(arraysize(registers), registers); 146 data->InitializePlatformSpecific(arraysize(registers), registers);
148 } 147 }
149 148
150 149 void CallICDescriptor::InitializePlatformSpecific(
151 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
152 CallInterfaceDescriptorData* data) { 150 CallInterfaceDescriptorData* data) {
153 Register registers[] = {a1, a0, a3, a2}; 151 Register registers[] = {a1, a0, a3, a2};
154 data->InitializePlatformSpecific(arraysize(registers), registers); 152 data->InitializePlatformSpecific(arraysize(registers), registers);
155 } 153 }
156 154
157 155
158 void CallConstructDescriptor::InitializePlatformSpecific( 156 void CallConstructDescriptor::InitializePlatformSpecific(
159 CallInterfaceDescriptorData* data) { 157 CallInterfaceDescriptorData* data) {
160 // a0 : number of arguments 158 // a0 : number of arguments
161 // a1 : the function to call 159 // a1 : the function to call
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 218 }
221 219
222 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ 220 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \
223 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ 221 void Allocate##Type##Descriptor::InitializePlatformSpecific( \
224 CallInterfaceDescriptorData* data) { \ 222 CallInterfaceDescriptorData* data) { \
225 data->InitializePlatformSpecific(0, nullptr, nullptr); \ 223 data->InitializePlatformSpecific(0, nullptr, nullptr); \
226 } 224 }
227 SIMD128_TYPES(SIMD128_ALLOC_DESC) 225 SIMD128_TYPES(SIMD128_ALLOC_DESC)
228 #undef SIMD128_ALLOC_DESC 226 #undef SIMD128_ALLOC_DESC
229 227
228 void ArrayConstructorDescriptor::InitializePlatformSpecific(
229 CallInterfaceDescriptorData* data) {
230 // kTarget, kNewTarget, kActualArgumentsCount, kAllocationSite
231 Register registers[] = {a1, a3, a0, a2};
232 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
233 }
234
230 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( 235 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
231 CallInterfaceDescriptorData* data) { 236 CallInterfaceDescriptorData* data) {
232 // register state 237 // register state
233 // a0 -- number of arguments 238 // a0 -- number of arguments
234 // a1 -- function 239 // a1 -- function
235 // a2 -- allocation site with elements kind 240 // a2 -- allocation site with elements kind
236 Register registers[] = {a1, a2, a0}; 241 Register registers[] = {a1, a2, a0};
237 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 242 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
238 } 243 }
239 244
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 Register registers[] = { 425 Register registers[] = {
421 a1, // loaded new FP 426 a1, // loaded new FP
422 }; 427 };
423 data->InitializePlatformSpecific(arraysize(registers), registers); 428 data->InitializePlatformSpecific(arraysize(registers), registers);
424 } 429 }
425 430
426 } // namespace internal 431 } // namespace internal
427 } // namespace v8 432 } // namespace v8
428 433
429 #endif // V8_TARGET_ARCH_MIPS 434 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698