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

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

Issue 2024253002: [stubs] Remove N-argument Hydrogen-based Array constructor stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 Created 4 years, 6 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
« src/mips/code-stubs-mips.cc ('K') | « 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( 259 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific(
260 CallInterfaceDescriptorData* data) { 260 CallInterfaceDescriptorData* data) {
261 // register state 261 // register state
262 // rax -- number of arguments 262 // rax -- number of arguments
263 // rdi -- function 263 // rdi -- function
264 // rbx -- allocation site with elements kind 264 // rbx -- allocation site with elements kind
265 Register registers[] = {rdi, rbx, rax}; 265 Register registers[] = {rdi, rbx, rax};
266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
267 } 267 }
268 268
269 void ArrayConstructorDescriptor::InitializePlatformSpecific( 269 void ArrayNArgumentsConstructorDescriptor::InitializePlatformSpecific(
270 CallInterfaceDescriptorData* data) { 270 CallInterfaceDescriptorData* data) {
271 // stack param count needs (constructor pointer, and single argument) 271 // register state
272 // rax -- number of arguments
273 // rdi -- function
274 // rbx -- allocation site with elements kind
272 Register registers[] = {rdi, rbx, rax}; 275 Register registers[] = {rdi, rbx, rax};
273 data->InitializePlatformSpecific(arraysize(registers), registers); 276 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
274 }
275
276
277 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
278 CallInterfaceDescriptorData* data) {
279 // stack param count needs (constructor pointer, and single argument)
280 Register registers[] = {rdi, rax};
281 data->InitializePlatformSpecific(arraysize(registers), registers);
282 } 277 }
283 278
284 void VarArgFunctionDescriptor::InitializePlatformSpecific( 279 void VarArgFunctionDescriptor::InitializePlatformSpecific(
285 CallInterfaceDescriptorData* data) { 280 CallInterfaceDescriptorData* data) {
286 // stack param count needs (arg count) 281 // stack param count needs (arg count)
287 Register registers[] = {rax}; 282 Register registers[] = {rax};
288 data->InitializePlatformSpecific(arraysize(registers), registers); 283 data->InitializePlatformSpecific(arraysize(registers), registers);
289 } 284 }
290 285
291 void CompareDescriptor::InitializePlatformSpecific( 286 void CompareDescriptor::InitializePlatformSpecific(
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 rbx, // the JSGeneratorObject to resume 411 rbx, // the JSGeneratorObject to resume
417 rdx // the resume mode (tagged) 412 rdx // the resume mode (tagged)
418 }; 413 };
419 data->InitializePlatformSpecific(arraysize(registers), registers); 414 data->InitializePlatformSpecific(arraysize(registers), registers);
420 } 415 }
421 416
422 } // namespace internal 417 } // namespace internal
423 } // namespace v8 418 } // namespace v8
424 419
425 #endif // V8_TARGET_ARCH_X64 420 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/mips/code-stubs-mips.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698