// Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment();
- CodeStubInterfaceDescriptor descriptor;
- InitializeInterfaceDescriptor(&descriptor);
+ CodeStubInterfaceDescriptor descriptor(this);
int param_count = descriptor.GetEnvironmentParameterCount();
{
// Call the runtime system in a fresh internal frame.
return DefineAsSpilled(result, spill_index);
} else {
DCHECK(info()->IsStub());
- CodeStubInterfaceDescriptor descriptor;
- info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
+ CodeStubInterfaceDescriptor descriptor(info()->code_stub());
int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg);
// Update the static counter each time a new code stub is generated.
isolate()->counters()->code_stubs()->Increment();
- CodeStubInterfaceDescriptor descriptor;
- InitializeInterfaceDescriptor(&descriptor);
+ CodeStubInterfaceDescriptor descriptor(this);
int param_count = descriptor.GetEnvironmentParameterCount();
{
// Call the runtime system in a fresh internal frame.
return DefineAsSpilled(result, spill_index);
} else {
DCHECK(info()->IsStub());
- CodeStubInterfaceDescriptor descriptor;
- info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
+ CodeStubInterfaceDescriptor descriptor(info()->code_stub());
int index = static_cast<int>(instr->index());
Register reg = descriptor.GetEnvironmentParameterRegister(index);
return DefineFixed(result, reg);