Index: src/interface-descriptors.cc |
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc |
index 9ee4269d3e711bd8ef775603a024c9237f29cb38..c8b313d649e0d70033a928a30ca381a062104635 100644 |
--- a/src/interface-descriptors.cc |
+++ b/src/interface-descriptors.cc |
@@ -301,23 +301,17 @@ void VectorStoreICTrampolineDescriptor::InitializePlatformSpecific( |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-FunctionType* ApiGetterDescriptor::BuildCallInterfaceDescriptorFunctionType( |
- Isolate* isolate, int paramater_count) { |
- Zone* zone = isolate->interface_descriptor_zone(); |
- FunctionType* function = |
- Type::Function(AnyTagged(zone), Type::Undefined(), 1, zone)->AsFunction(); |
- function->InitParameter(0, ExternalPointer(zone)); |
- return function; |
+const Register ApiGetterDescriptor::ReceiverRegister() { |
+ return LoadDescriptor::ReceiverRegister(); |
} |
- |
void ApiGetterDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
- Register registers[] = {function_address()}; |
+ Register registers[] = {ReceiverRegister(), HolderRegister(), |
+ CallbackRegister()}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
- |
void ContextOnlyDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
data->InitializePlatformSpecific(0, nullptr); |