Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index a3e936c0f499e49701e96d48dedd72ea4ba160ad..d6c8a51f94bbfb632f4fe9a025c2ecb3b1a3fa7b 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -366,60 +366,6 @@ CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr, |
"js-call"); |
} |
- |
-CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
- MachineSignature::Builder types(zone, 0, 6); |
- LocationSignature::Builder locations(zone, 0, 6); |
- |
- // Add registers for fixed parameters passed via interpreter dispatch. |
- STATIC_ASSERT(0 == Linkage::kInterpreterAccumulatorParameter); |
- types.AddParam(MachineType::AnyTagged()); |
- locations.AddParam(regloc(kInterpreterAccumulatorRegister)); |
- |
- STATIC_ASSERT(1 == Linkage::kInterpreterRegisterFileParameter); |
- types.AddParam(MachineType::Pointer()); |
- locations.AddParam(regloc(kInterpreterRegisterFileRegister)); |
- |
- STATIC_ASSERT(2 == Linkage::kInterpreterBytecodeOffsetParameter); |
- types.AddParam(MachineType::IntPtr()); |
- locations.AddParam(regloc(kInterpreterBytecodeOffsetRegister)); |
- |
- STATIC_ASSERT(3 == Linkage::kInterpreterBytecodeArrayParameter); |
- types.AddParam(MachineType::AnyTagged()); |
- locations.AddParam(regloc(kInterpreterBytecodeArrayRegister)); |
- |
- STATIC_ASSERT(4 == Linkage::kInterpreterDispatchTableParameter); |
- types.AddParam(MachineType::Pointer()); |
-#if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X87) |
- // TODO(rmcilroy): Make the context param the one spilled to the stack once |
- // Turbofan supports modified stack arguments in tail calls. |
- locations.AddParam( |
- LinkageLocation::ForCallerFrameSlot(kInterpreterDispatchTableSpillSlot)); |
-#else |
- locations.AddParam(regloc(kInterpreterDispatchTableRegister)); |
-#endif |
- |
- STATIC_ASSERT(5 == Linkage::kInterpreterContextParameter); |
- types.AddParam(MachineType::AnyTagged()); |
- locations.AddParam(regloc(kContextRegister)); |
- |
- LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); |
- return new (zone) CallDescriptor( // -- |
- CallDescriptor::kCallCodeObject, // kind |
- MachineType::None(), // target MachineType |
- target_loc, // target location |
- types.Build(), // machine_sig |
- locations.Build(), // location_sig |
- 0, // stack_parameter_count |
- Operator::kNoProperties, // properties |
- kNoCalleeSaved, // callee-saved registers |
- kNoCalleeSaved, // callee-saved fp regs |
- CallDescriptor::kSupportsTailCalls | // flags |
- CallDescriptor::kCanUseRoots, // flags |
- "interpreter-dispatch"); |
-} |
- |
- |
// TODO(all): Add support for return representations/locations to |
// CallInterfaceDescriptor. |
// TODO(turbofan): cache call descriptors for code stub calls. |