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

Side by Side Diff: src/x64/interface-descriptors-x64.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/x64/code-stubs-x64.cc ('k') | no next file » | 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_X64 5 #if V8_TARGET_ARCH_X64
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 236
237 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ 237 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \
238 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ 238 void Allocate##Type##Descriptor::InitializePlatformSpecific( \
239 CallInterfaceDescriptorData* data) { \ 239 CallInterfaceDescriptorData* data) { \
240 data->InitializePlatformSpecific(0, nullptr, nullptr); \ 240 data->InitializePlatformSpecific(0, nullptr, nullptr); \
241 } 241 }
242 SIMD128_TYPES(SIMD128_ALLOC_DESC) 242 SIMD128_TYPES(SIMD128_ALLOC_DESC)
243 #undef SIMD128_ALLOC_DESC 243 #undef SIMD128_ALLOC_DESC
244 244
245 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
246 CallInterfaceDescriptorData* data) {
247 // register state
248 // rax -- number of arguments
249 // rdi -- function
250 // rbx -- allocation site with elements kind
251 Register registers[] = {rdi, rbx, rax};
252 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
253 }
254
245 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( 255 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific(
246 CallInterfaceDescriptorData* data) { 256 CallInterfaceDescriptorData* data) {
247 // register state 257 // register state
248 // rax -- number of arguments 258 // rax -- number of arguments
249 // rdi -- function 259 // rdi -- function
250 // rbx -- allocation site with elements kind 260 // rbx -- allocation site with elements kind
251 Register registers[] = {rdi, rbx}; 261 Register registers[] = {rdi, rbx};
252 data->InitializePlatformSpecific(arraysize(registers), registers); 262 data->InitializePlatformSpecific(arraysize(registers), registers);
253 } 263 }
254 264
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 rbx, // the JSGeneratorObject to resume 423 rbx, // the JSGeneratorObject to resume
414 rdx // the resume mode (tagged) 424 rdx // the resume mode (tagged)
415 }; 425 };
416 data->InitializePlatformSpecific(arraysize(registers), registers); 426 data->InitializePlatformSpecific(arraysize(registers), registers);
417 } 427 }
418 428
419 } // namespace internal 429 } // namespace internal
420 } // namespace v8 430 } // namespace v8
421 431
422 #endif // V8_TARGET_ARCH_X64 432 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698