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 1987183002: [stubs] Convert Internal/ArraySingleArgumentsConstructor to a TurboFan 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( 243 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
244 CallInterfaceDescriptorData* data) { 244 CallInterfaceDescriptorData* data) {
245 // register state 245 // register state
246 // rax -- number of arguments 246 // rax -- number of arguments
247 // rdi -- function 247 // rdi -- function
248 // rbx -- allocation site with elements kind 248 // rbx -- allocation site with elements kind
249 Register registers[] = {rdi, rbx, rax}; 249 Register registers[] = {rdi, rbx, rax};
250 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 250 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
251 } 251 }
252 252
253 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( 253 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific(
254 CallInterfaceDescriptorData* data) { 254 CallInterfaceDescriptorData* data) {
255 // register state 255 // register state
256 // rax -- number of arguments 256 // rax -- number of arguments
257 // rdi -- function 257 // rdi -- function
258 // rbx -- allocation site with elements kind 258 // rbx -- allocation site with elements kind
259 Register registers[] = {rdi, rbx}; 259 Register registers[] = {rdi, rbx, rax};
260 data->InitializePlatformSpecific(arraysize(registers), registers); 260 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
261 } 261 }
262 262
263
264 void ArrayConstructorDescriptor::InitializePlatformSpecific( 263 void ArrayConstructorDescriptor::InitializePlatformSpecific(
265 CallInterfaceDescriptorData* data) { 264 CallInterfaceDescriptorData* data) {
266 // stack param count needs (constructor pointer, and single argument) 265 // stack param count needs (constructor pointer, and single argument)
267 Register registers[] = {rdi, rbx, rax}; 266 Register registers[] = {rdi, rbx, rax};
268 data->InitializePlatformSpecific(arraysize(registers), registers); 267 data->InitializePlatformSpecific(arraysize(registers), registers);
269 } 268 }
270 269
271 270
272 void InternalArrayConstructorConstantArgCountDescriptor::
273 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
274 // register state
275 // rax -- number of arguments
276 // rdi -- constructor function
277 Register registers[] = {rdi};
278 data->InitializePlatformSpecific(arraysize(registers), registers);
279 }
280
281
282 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( 271 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
283 CallInterfaceDescriptorData* data) { 272 CallInterfaceDescriptorData* data) {
284 // stack param count needs (constructor pointer, and single argument) 273 // stack param count needs (constructor pointer, and single argument)
285 Register registers[] = {rdi, rax}; 274 Register registers[] = {rdi, rax};
286 data->InitializePlatformSpecific(arraysize(registers), registers); 275 data->InitializePlatformSpecific(arraysize(registers), registers);
287 } 276 }
288 277
289 void FastArrayPushDescriptor::InitializePlatformSpecific( 278 void FastArrayPushDescriptor::InitializePlatformSpecific(
290 CallInterfaceDescriptorData* data) { 279 CallInterfaceDescriptorData* data) {
291 // stack param count needs (arg count) 280 // stack param count needs (arg count)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 rbx, // the JSGeneratorObject to resume 410 rbx, // the JSGeneratorObject to resume
422 rdx // the resume mode (tagged) 411 rdx // the resume mode (tagged)
423 }; 412 };
424 data->InitializePlatformSpecific(arraysize(registers), registers); 413 data->InitializePlatformSpecific(arraysize(registers), registers);
425 } 414 }
426 415
427 } // namespace internal 416 } // namespace internal
428 } // namespace v8 417 } // namespace v8
429 418
430 #endif // V8_TARGET_ARCH_X64 419 #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