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

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

Issue 1903723003: [stubs]: Implement ArrayNoArgumentConstructor as a TF stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ 241 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \
242 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ 242 void Allocate##Type##Descriptor::InitializePlatformSpecific( \
243 CallInterfaceDescriptorData* data) { \ 243 CallInterfaceDescriptorData* data) { \
244 data->InitializePlatformSpecific(0, nullptr, nullptr); \ 244 data->InitializePlatformSpecific(0, nullptr, nullptr); \
245 } 245 }
246 SIMD128_TYPES(SIMD128_ALLOC_DESC) 246 SIMD128_TYPES(SIMD128_ALLOC_DESC)
247 #undef SIMD128_ALLOC_DESC 247 #undef SIMD128_ALLOC_DESC
248 248
249 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
250 CallInterfaceDescriptorData* data) {
251 // register state
252 // a0 -- number of arguments
253 // a1 -- function
254 // a2 -- allocation site with elements kind
255 Register registers[] = {a1, a2, a0};
256 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
257 }
258
249 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( 259 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific(
250 CallInterfaceDescriptorData* data) { 260 CallInterfaceDescriptorData* data) {
251 // register state 261 // register state
252 // a0 -- number of arguments 262 // a0 -- number of arguments
253 // a1 -- function 263 // a1 -- function
254 // a2 -- allocation site with elements kind 264 // a2 -- allocation site with elements kind
255 Register registers[] = {a1, a2}; 265 Register registers[] = {a1, a2};
256 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
257 } 267 }
258 268
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 a1, // the JSGeneratorObject to resume 427 a1, // the JSGeneratorObject to resume
418 a2 // the resume mode (tagged) 428 a2 // the resume mode (tagged)
419 }; 429 };
420 data->InitializePlatformSpecific(arraysize(registers), registers); 430 data->InitializePlatformSpecific(arraysize(registers), registers);
421 } 431 }
422 432
423 } // namespace internal 433 } // namespace internal
424 } // namespace v8 434 } // namespace v8
425 435
426 #endif // V8_TARGET_ARCH_MIPS 436 #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