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

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

Issue 1816553002: Introduce a code stub version of Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 9 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/arm64/code-stubs-arm64.cc ('k') | src/builtins.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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 300 }
301 301
302 302
303 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( 303 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
304 CallInterfaceDescriptorData* data) { 304 CallInterfaceDescriptorData* data) {
305 // stack param count needs (constructor pointer, and single argument) 305 // stack param count needs (constructor pointer, and single argument)
306 Register registers[] = {x1, x0}; 306 Register registers[] = {x1, x0};
307 data->InitializePlatformSpecific(arraysize(registers), registers); 307 data->InitializePlatformSpecific(arraysize(registers), registers);
308 } 308 }
309 309
310 void FastArrayPushDescriptor::InitializePlatformSpecific(
311 CallInterfaceDescriptorData* data) {
312 // stack param count needs (arg count)
313 Register registers[] = {x0};
314 data->InitializePlatformSpecific(arraysize(registers), registers);
315 }
310 316
311 void CompareDescriptor::InitializePlatformSpecific( 317 void CompareDescriptor::InitializePlatformSpecific(
312 CallInterfaceDescriptorData* data) { 318 CallInterfaceDescriptorData* data) {
313 // x1: left operand 319 // x1: left operand
314 // x0: right operand 320 // x0: right operand
315 Register registers[] = {x1, x0}; 321 Register registers[] = {x1, x0};
316 data->InitializePlatformSpecific(arraysize(registers), registers); 322 data->InitializePlatformSpecific(arraysize(registers), registers);
317 } 323 }
318 324
319 325
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 x1 // the runtime function to call 458 x1 // the runtime function to call
453 }; 459 };
454 data->InitializePlatformSpecific(arraysize(registers), registers); 460 data->InitializePlatformSpecific(arraysize(registers), registers);
455 } 461 }
456 462
457 463
458 } // namespace internal 464 } // namespace internal
459 } // namespace v8 465 } // namespace v8
460 466
461 #endif // V8_TARGET_ARCH_ARM64 467 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698