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

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

Issue 1457313002: [turbofan] Pass new.target to arguments adaptor trampoline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/interface-descriptors-arm.cc ('k') | src/compiler/js-typed-lowering.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/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 380 }
381 381
382 382
383 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( 383 void ArgumentAdaptorDescriptor::InitializePlatformSpecific(
384 CallInterfaceDescriptorData* data) { 384 CallInterfaceDescriptorData* data) {
385 static PlatformInterfaceDescriptor default_descriptor = 385 static PlatformInterfaceDescriptor default_descriptor =
386 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); 386 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
387 387
388 Register registers[] = { 388 Register registers[] = {
389 x1, // JSFunction 389 x1, // JSFunction
390 x3, // the new target
390 x0, // actual number of arguments 391 x0, // actual number of arguments
391 x2, // expected number of arguments 392 x2, // expected number of arguments
392 }; 393 };
393 data->InitializePlatformSpecific(arraysize(registers), registers, 394 data->InitializePlatformSpecific(arraysize(registers), registers,
394 &default_descriptor); 395 &default_descriptor);
395 } 396 }
396 397
397 398
398 void ApiFunctionDescriptor::InitializePlatformSpecific( 399 void ApiFunctionDescriptor::InitializePlatformSpecific(
399 CallInterfaceDescriptorData* data) { 400 CallInterfaceDescriptorData* data) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 x1 // the runtime function to call 481 x1 // the runtime function to call
481 }; 482 };
482 data->InitializePlatformSpecific(arraysize(registers), registers); 483 data->InitializePlatformSpecific(arraysize(registers), registers);
483 } 484 }
484 485
485 486
486 } // namespace internal 487 } // namespace internal
487 } // namespace v8 488 } // namespace v8
488 489
489 #endif // V8_TARGET_ARCH_ARM64 490 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698