| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index 862997941da95b8f68349d55c6bc8a138394d0bb..a07a7eb745876a5990d1cb5eccaa3f7bdca4e112 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -16,10 +16,6 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| -InterfaceDescriptor::InterfaceDescriptor()
|
| - : register_param_count_(-1) { }
|
| -
|
| -
|
| CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
|
| : stack_parameter_count_(no_reg),
|
| hint_stack_parameter_count_(-1),
|
| @@ -30,38 +26,6 @@ CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor()
|
| has_miss_handler_(false) { }
|
|
|
|
|
| -void InterfaceDescriptor::Initialize(
|
| - int register_parameter_count,
|
| - Register* registers,
|
| - Representation* register_param_representations,
|
| - PlatformInterfaceDescriptor* platform_descriptor) {
|
| - platform_specific_descriptor_ = platform_descriptor;
|
| - register_param_count_ = register_parameter_count;
|
| -
|
| - // An interface descriptor must have a context register.
|
| - DCHECK(register_parameter_count > 0 && registers[0].is(ContextRegister()));
|
| -
|
| - // InterfaceDescriptor owns a copy of the registers array.
|
| - register_params_.Reset(NewArray<Register>(register_parameter_count));
|
| - for (int i = 0; i < register_parameter_count; i++) {
|
| - register_params_[i] = registers[i];
|
| - }
|
| -
|
| - // If a representations array is specified, then the descriptor owns that as
|
| - // well.
|
| - if (register_param_representations != NULL) {
|
| - register_param_representations_.Reset(
|
| - NewArray<Representation>(register_parameter_count));
|
| - for (int i = 0; i < register_parameter_count; i++) {
|
| - // If there is a context register, the representation must be tagged.
|
| - DCHECK(i != 0 || register_param_representations[i].Equals(
|
| - Representation::Tagged()));
|
| - register_param_representations_[i] = register_param_representations[i];
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| void CodeStubInterfaceDescriptor::Initialize(
|
| CodeStub::Major major, int register_parameter_count, Register* registers,
|
| Address deoptimization_handler,
|
| @@ -92,16 +56,6 @@ void CodeStubInterfaceDescriptor::Initialize(
|
| }
|
|
|
|
|
| -void CallInterfaceDescriptor::Initialize(
|
| - int register_parameter_count,
|
| - Register* registers,
|
| - Representation* param_representations,
|
| - PlatformInterfaceDescriptor* platform_descriptor) {
|
| - InterfaceDescriptor::Initialize(register_parameter_count, registers,
|
| - param_representations, platform_descriptor);
|
| -}
|
| -
|
| -
|
| bool CodeStub::FindCodeInCache(Code** code_out) {
|
| UnseededNumberDictionary* stubs = isolate()->heap()->code_stubs();
|
| int index = stubs->FindEntry(GetKey());
|
|
|