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

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

Issue 1903723003: [stubs]: Implement ArrayNoArgumentConstructor as a TF 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/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('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_IA32 5 #if V8_TARGET_ARCH_IA32
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } 244 }
245 245
246 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ 246 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \
247 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ 247 void Allocate##Type##Descriptor::InitializePlatformSpecific( \
248 CallInterfaceDescriptorData* data) { \ 248 CallInterfaceDescriptorData* data) { \
249 data->InitializePlatformSpecific(0, nullptr, nullptr); \ 249 data->InitializePlatformSpecific(0, nullptr, nullptr); \
250 } 250 }
251 SIMD128_TYPES(SIMD128_ALLOC_DESC) 251 SIMD128_TYPES(SIMD128_ALLOC_DESC)
252 #undef SIMD128_ALLOC_DESC 252 #undef SIMD128_ALLOC_DESC
253 253
254 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
255 CallInterfaceDescriptorData* data) {
256 // register state
257 // eax -- number of arguments
258 // edi -- function
259 // ebx -- allocation site with elements kind
260 Register registers[] = {edi, ebx, eax};
261 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
262 }
263
254 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( 264 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific(
255 CallInterfaceDescriptorData* data) { 265 CallInterfaceDescriptorData* data) {
256 // register state 266 // register state
257 // eax -- number of arguments 267 // eax -- number of arguments
258 // edi -- function 268 // edi -- function
259 // ebx -- allocation site with elements kind 269 // ebx -- allocation site with elements kind
260 Register registers[] = {edi, ebx}; 270 Register registers[] = {edi, ebx};
261 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 271 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
262 } 272 }
263 273
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 ebx, // the JSGeneratorObject to resume 432 ebx, // the JSGeneratorObject to resume
423 edx // the resume mode (tagged) 433 edx // the resume mode (tagged)
424 }; 434 };
425 data->InitializePlatformSpecific(arraysize(registers), registers); 435 data->InitializePlatformSpecific(arraysize(registers), registers);
426 } 436 }
427 437
428 } // namespace internal 438 } // namespace internal
429 } // namespace v8 439 } // namespace v8
430 440
431 #endif // V8_TARGET_ARCH_IA32 441 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698