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

Side by Side Diff: src/arm/interface-descriptors-arm.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/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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ 242 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \
243 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ 243 void Allocate##Type##Descriptor::InitializePlatformSpecific( \
244 CallInterfaceDescriptorData* data) { \ 244 CallInterfaceDescriptorData* data) { \
245 data->InitializePlatformSpecific(0, nullptr, nullptr); \ 245 data->InitializePlatformSpecific(0, nullptr, nullptr); \
246 } 246 }
247 SIMD128_TYPES(SIMD128_ALLOC_DESC) 247 SIMD128_TYPES(SIMD128_ALLOC_DESC)
248 #undef SIMD128_ALLOC_DESC 248 #undef SIMD128_ALLOC_DESC
249 249
250 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
251 CallInterfaceDescriptorData* data) {
252 // register state
253 // r0 -- number of arguments
254 // r1 -- function
255 // r2 -- allocation site with elements kind
256 Register registers[] = {r1, r2, r0};
257 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
258 }
259
250 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( 260 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific(
251 CallInterfaceDescriptorData* data) { 261 CallInterfaceDescriptorData* data) {
252 // register state 262 // register state
253 // r0 -- number of arguments 263 // r0 -- number of arguments
254 // r1 -- function 264 // r1 -- function
255 // r2 -- allocation site with elements kind 265 // r2 -- allocation site with elements kind
256 Register registers[] = {r1, r2}; 266 Register registers[] = {r1, r2};
257 data->InitializePlatformSpecific(arraysize(registers), registers); 267 data->InitializePlatformSpecific(arraysize(registers), registers);
258 } 268 }
259 269
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 r1, // the JSGeneratorObject to resume 448 r1, // the JSGeneratorObject to resume
439 r2 // the resume mode (tagged) 449 r2 // the resume mode (tagged)
440 }; 450 };
441 data->InitializePlatformSpecific(arraysize(registers), registers); 451 data->InitializePlatformSpecific(arraysize(registers), registers);
442 } 452 }
443 453
444 } // namespace internal 454 } // namespace internal
445 } // namespace v8 455 } // namespace v8
446 456
447 #endif // V8_TARGET_ARCH_ARM 457 #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