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

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

Issue 1892533004: Change calling convention of CallApiGetterStub to accept the AccessorInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Importing mips patch from 1896963002 Created 4 years, 8 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/interface-descriptors.h ('k') | src/mips/code-stubs-mips.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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 namespace { 10 namespace {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 } 294 }
295 295
296 296
297 void VectorStoreICTrampolineDescriptor::InitializePlatformSpecific( 297 void VectorStoreICTrampolineDescriptor::InitializePlatformSpecific(
298 CallInterfaceDescriptorData* data) { 298 CallInterfaceDescriptorData* data) {
299 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), 299 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(),
300 SlotRegister()}; 300 SlotRegister()};
301 data->InitializePlatformSpecific(arraysize(registers), registers); 301 data->InitializePlatformSpecific(arraysize(registers), registers);
302 } 302 }
303 303
304 FunctionType* ApiGetterDescriptor::BuildCallInterfaceDescriptorFunctionType( 304 const Register ApiGetterDescriptor::ReceiverRegister() {
305 Isolate* isolate, int paramater_count) { 305 return LoadDescriptor::ReceiverRegister();
306 Zone* zone = isolate->interface_descriptor_zone();
307 FunctionType* function =
308 Type::Function(AnyTagged(zone), Type::Undefined(), 1, zone)->AsFunction();
309 function->InitParameter(0, ExternalPointer(zone));
310 return function;
311 } 306 }
312 307
313
314 void ApiGetterDescriptor::InitializePlatformSpecific( 308 void ApiGetterDescriptor::InitializePlatformSpecific(
315 CallInterfaceDescriptorData* data) { 309 CallInterfaceDescriptorData* data) {
316 Register registers[] = {function_address()}; 310 Register registers[] = {ReceiverRegister(), HolderRegister(),
311 CallbackRegister()};
317 data->InitializePlatformSpecific(arraysize(registers), registers); 312 data->InitializePlatformSpecific(arraysize(registers), registers);
318 } 313 }
319 314
320
321 void ContextOnlyDescriptor::InitializePlatformSpecific( 315 void ContextOnlyDescriptor::InitializePlatformSpecific(
322 CallInterfaceDescriptorData* data) { 316 CallInterfaceDescriptorData* data) {
323 data->InitializePlatformSpecific(0, nullptr); 317 data->InitializePlatformSpecific(0, nullptr);
324 } 318 }
325 319
326 320
327 void GrowArrayElementsDescriptor::InitializePlatformSpecific( 321 void GrowArrayElementsDescriptor::InitializePlatformSpecific(
328 CallInterfaceDescriptorData* data) { 322 CallInterfaceDescriptorData* data) {
329 Register registers[] = {ObjectRegister(), KeyRegister()}; 323 Register registers[] = {ObjectRegister(), KeyRegister()};
330 data->InitializePlatformSpecific(arraysize(registers), registers); 324 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 526 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
533 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); 527 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone));
534 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 528 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
535 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 529 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
536 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 530 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
537 return function; 531 return function;
538 } 532 }
539 533
540 } // namespace internal 534 } // namespace internal
541 } // namespace v8 535 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698