Commit b9e8a2b4 authored by jgruber's avatar jgruber Committed by Commit Bot

Remove unused interface descriptors

Bug: v8:7754
Change-Id: I89d655129a860cd5f5d1d62600ab2df43d406974
Reviewed-on: https://chromium-review.googlesource.com/1078735Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53441}
parent febb376c
...@@ -88,16 +88,6 @@ const Register FastNewObjectDescriptor::NewTargetRegister() { ...@@ -88,16 +88,6 @@ const Register FastNewObjectDescriptor::NewTargetRegister() {
return kJavaScriptCallNewTargetRegister; return kJavaScriptCallNewTargetRegister;
} }
void FastNewArgumentsDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) {
Register registers[] = {TargetRegister()};
data->InitializePlatformSpecific(arraysize(registers), registers);
}
const Register FastNewArgumentsDescriptor::TargetRegister() {
return kJSFunctionRegister;
}
void RecordWriteDescriptor::InitializePlatformIndependent( void RecordWriteDescriptor::InitializePlatformIndependent(
CallInterfaceDescriptorData* data) { CallInterfaceDescriptorData* data) {
MachineType machine_types[] = {MachineType::TaggedPointer(), MachineType machine_types[] = {MachineType::TaggedPointer(),
...@@ -231,29 +221,6 @@ void StoreTransitionDescriptor::InitializePlatformIndependent( ...@@ -231,29 +221,6 @@ void StoreTransitionDescriptor::InitializePlatformIndependent(
machine_types); machine_types);
} }
void StoreNamedTransitionDescriptor::InitializePlatformIndependent(
CallInterfaceDescriptorData* data) {
// kReceiver, kFieldOffset, kMap, kValue, kSlot, kVector, kName
MachineType machine_types[] = {
MachineType::AnyTagged(), MachineType::TaggedSigned(),
MachineType::AnyTagged(), MachineType::AnyTagged(),
MachineType::TaggedSigned(), MachineType::AnyTagged(),
MachineType::AnyTagged()};
data->InitializePlatformIndependent(arraysize(machine_types), 0,
machine_types);
}
void StoreNamedTransitionDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) {
Register registers[] = {
ReceiverRegister(), FieldOffsetRegister(), MapRegister(),
ValueRegister(), SlotRegister(), VectorRegister(),
NameRegister(),
};
int len = arraysize(registers) - kStackArgumentsCount;
data->InitializePlatformSpecific(len, registers);
}
void StringAtDescriptor::InitializePlatformIndependent( void StringAtDescriptor::InitializePlatformIndependent(
CallInterfaceDescriptorData* data) { CallInterfaceDescriptorData* data) {
// kReceiver, kPosition // kReceiver, kPosition
......
...@@ -26,13 +26,11 @@ class PlatformInterfaceDescriptor; ...@@ -26,13 +26,11 @@ class PlatformInterfaceDescriptor;
V(LoadGlobalWithVector) \ V(LoadGlobalWithVector) \
V(Store) \ V(Store) \
V(StoreWithVector) \ V(StoreWithVector) \
V(StoreNamedTransition) \
V(StoreTransition) \ V(StoreTransition) \
V(StoreGlobal) \ V(StoreGlobal) \
V(StoreGlobalWithVector) \ V(StoreGlobalWithVector) \
V(FastNewFunctionContext) \ V(FastNewFunctionContext) \
V(FastNewObject) \ V(FastNewObject) \
V(FastNewArguments) \
V(RecordWrite) \ V(RecordWrite) \
V(TypeConversion) \ V(TypeConversion) \
V(TypeConversionStackParameter) \ V(TypeConversionStackParameter) \
...@@ -53,7 +51,6 @@ class PlatformInterfaceDescriptor; ...@@ -53,7 +51,6 @@ class PlatformInterfaceDescriptor;
V(AllocateHeapNumber) \ V(AllocateHeapNumber) \
V(Builtin) \ V(Builtin) \
V(ArrayConstructor) \ V(ArrayConstructor) \
V(IteratingArrayBuiltin) \
V(ArrayNoArgumentConstructor) \ V(ArrayNoArgumentConstructor) \
V(ArraySingleArgumentConstructor) \ V(ArraySingleArgumentConstructor) \
V(ArrayNArgumentsConstructor) \ V(ArrayNArgumentsConstructor) \
...@@ -61,7 +58,6 @@ class PlatformInterfaceDescriptor; ...@@ -61,7 +58,6 @@ class PlatformInterfaceDescriptor;
V(BinaryOp) \ V(BinaryOp) \
V(StringAt) \ V(StringAt) \
V(StringSubstring) \ V(StringSubstring) \
V(ForInPrepare) \
V(GetProperty) \ V(GetProperty) \
V(ArgumentAdaptor) \ V(ArgumentAdaptor) \
V(ApiCallback) \ V(ApiCallback) \
...@@ -412,24 +408,6 @@ class StoreTransitionDescriptor : public StoreDescriptor { ...@@ -412,24 +408,6 @@ class StoreTransitionDescriptor : public StoreDescriptor {
static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0; static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0;
}; };
class StoreNamedTransitionDescriptor : public StoreTransitionDescriptor {
public:
DEFINE_PARAMETERS(kReceiver, kFieldOffset, kMap, kValue, kSlot, kVector,
kName)
DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreNamedTransitionDescriptor,
StoreTransitionDescriptor)
// Always pass name on the stack.
static const bool kPassLastArgsOnStack = true;
static const int kStackArgumentsCount =
StoreTransitionDescriptor::kStackArgumentsCount + 1;
static const Register NameRegister() { return no_reg; }
static const Register FieldOffsetRegister() {
return StoreTransitionDescriptor::NameRegister();
}
};
class StoreWithVectorDescriptor : public StoreDescriptor { class StoreWithVectorDescriptor : public StoreDescriptor {
public: public:
DEFINE_PARAMETERS(kReceiver, kName, kValue, kSlot, kVector) DEFINE_PARAMETERS(kReceiver, kName, kValue, kSlot, kVector)
...@@ -518,13 +496,6 @@ class FastNewObjectDescriptor : public CallInterfaceDescriptor { ...@@ -518,13 +496,6 @@ class FastNewObjectDescriptor : public CallInterfaceDescriptor {
static const Register NewTargetRegister(); static const Register NewTargetRegister();
}; };
class FastNewArgumentsDescriptor : public CallInterfaceDescriptor {
public:
DEFINE_PARAMETERS(kFunction)
DECLARE_DESCRIPTOR(FastNewArgumentsDescriptor, CallInterfaceDescriptor)
static const Register TargetRegister();
};
class RecordWriteDescriptor final : public CallInterfaceDescriptor { class RecordWriteDescriptor final : public CallInterfaceDescriptor {
public: public:
DEFINE_PARAMETERS(kObject, kSlot, kIsolate, kRememberedSet, kFPMode) DEFINE_PARAMETERS(kObject, kSlot, kIsolate, kRememberedSet, kFPMode)
...@@ -548,13 +519,6 @@ class TypeConversionStackParameterDescriptor final ...@@ -548,13 +519,6 @@ class TypeConversionStackParameterDescriptor final
TypeConversionStackParameterDescriptor, CallInterfaceDescriptor) TypeConversionStackParameterDescriptor, CallInterfaceDescriptor)
}; };
class ForInPrepareDescriptor final : public CallInterfaceDescriptor {
public:
DEFINE_PARAMETERS(kObject)
DECLARE_DEFAULT_DESCRIPTOR(ForInPrepareDescriptor, CallInterfaceDescriptor,
kParameterCount)
};
class GetPropertyDescriptor final : public CallInterfaceDescriptor { class GetPropertyDescriptor final : public CallInterfaceDescriptor {
public: public:
DEFINE_PARAMETERS(kObject, kKey) DEFINE_PARAMETERS(kObject, kKey)
...@@ -680,12 +644,6 @@ class BuiltinDescriptor : public CallInterfaceDescriptor { ...@@ -680,12 +644,6 @@ class BuiltinDescriptor : public CallInterfaceDescriptor {
static const Register TargetRegister(); static const Register TargetRegister();
}; };
class IteratingArrayBuiltinDescriptor : public BuiltinDescriptor {
public:
DEFINE_BUILTIN_PARAMETERS(kCallback, kThisArg)
DECLARE_BUILTIN_DESCRIPTOR(IteratingArrayBuiltinDescriptor)
};
// TODO(jgruber): Replace with generic TFS descriptor. // TODO(jgruber): Replace with generic TFS descriptor.
class ArrayConstructorDescriptor : public CallInterfaceDescriptor { class ArrayConstructorDescriptor : public CallInterfaceDescriptor {
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment