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

Side by Side Diff: src/x64/interface-descriptors-x64.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/x64/code-stubs-x64.cc ('k') | src/x87/code-stubs-x87.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 #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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 274
275 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( 275 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
276 CallInterfaceDescriptorData* data) { 276 CallInterfaceDescriptorData* data) {
277 // stack param count needs (constructor pointer, and single argument) 277 // stack param count needs (constructor pointer, and single argument)
278 Register registers[] = {rdi, rax}; 278 Register registers[] = {rdi, rax};
279 data->InitializePlatformSpecific(arraysize(registers), registers); 279 data->InitializePlatformSpecific(arraysize(registers), registers);
280 } 280 }
281 281
282 void FastArrayPushDescriptor::InitializePlatformSpecific(
283 CallInterfaceDescriptorData* data) {
284 // stack param count needs (arg count)
285 Register registers[] = {rax};
286 data->InitializePlatformSpecific(arraysize(registers), registers);
287 }
282 288
283 void CompareDescriptor::InitializePlatformSpecific( 289 void CompareDescriptor::InitializePlatformSpecific(
284 CallInterfaceDescriptorData* data) { 290 CallInterfaceDescriptorData* data) {
285 Register registers[] = {rdx, rax}; 291 Register registers[] = {rdx, rax};
286 data->InitializePlatformSpecific(arraysize(registers), registers); 292 data->InitializePlatformSpecific(arraysize(registers), registers);
287 } 293 }
288 294
289 295
290 void BinaryOpDescriptor::InitializePlatformSpecific( 296 void BinaryOpDescriptor::InitializePlatformSpecific(
291 CallInterfaceDescriptorData* data) { 297 CallInterfaceDescriptorData* data) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 r15, // address of first argument (argv) 400 r15, // address of first argument (argv)
395 rbx // the runtime function to call 401 rbx // the runtime function to call
396 }; 402 };
397 data->InitializePlatformSpecific(arraysize(registers), registers); 403 data->InitializePlatformSpecific(arraysize(registers), registers);
398 } 404 }
399 405
400 } // namespace internal 406 } // namespace internal
401 } // namespace v8 407 } // namespace v8
402 408
403 #endif // V8_TARGET_ARCH_X64 409 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698