Index: src/interface-descriptors.cc |
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc |
index 9cd8516c14b64c179ed4ecae7ff6ad43f877f758..f61438fc832545ead93519bbbd359b796d666cd9 100644 |
--- a/src/interface-descriptors.cc |
+++ b/src/interface-descriptors.cc |
@@ -446,38 +446,13 @@ void ArgumentAdaptorDescriptor::InitializePlatformIndependent( |
machine_types); |
} |
-CallInterfaceDescriptor ApiCallbackDescriptorBase::ForArgs(Isolate* isolate, |
- int argc) { |
- switch (argc) { |
- case 0: |
- return ApiCallbackWith0ArgsDescriptor(isolate); |
- case 1: |
- return ApiCallbackWith1ArgsDescriptor(isolate); |
- case 2: |
- return ApiCallbackWith2ArgsDescriptor(isolate); |
- case 3: |
- return ApiCallbackWith3ArgsDescriptor(isolate); |
- case 4: |
- return ApiCallbackWith4ArgsDescriptor(isolate); |
- case 5: |
- return ApiCallbackWith5ArgsDescriptor(isolate); |
- case 6: |
- return ApiCallbackWith6ArgsDescriptor(isolate); |
- case 7: |
- return ApiCallbackWith7ArgsDescriptor(isolate); |
- default: |
- UNREACHABLE(); |
- return VoidDescriptor(isolate); |
- } |
-} |
- |
-void ApiCallbackDescriptorBase::InitializePlatformIndependent( |
+void ApiCallbackDescriptor::InitializePlatformIndependent( |
CallInterfaceDescriptorData* data) { |
// kFunction, kCallData, kHolder, kApiFunctionAddress |
MachineType machine_types[] = { |
MachineType::AnyTagged(), MachineType::AnyTagged(), |
MachineType::AnyTagged(), MachineType::Pointer()}; |
- data->InitializePlatformIndependent(arraysize(machine_types), extra_args(), |
+ data->InitializePlatformIndependent(arraysize(machine_types), 0, |
machine_types); |
} |