| Index: src/mips64/interface-descriptors-mips64.cc
|
| diff --git a/src/mips64/interface-descriptors-mips64.cc b/src/mips64/interface-descriptors-mips64.cc
|
| index ee4cfb88694a37930045a94dd95a05948cb34b8b..7b920c74705249a8861d4e08ace0be4731e0e62e 100644
|
| --- a/src/mips64/interface-descriptors-mips64.cc
|
| +++ b/src/mips64/interface-descriptors-mips64.cc
|
| @@ -15,6 +15,137 @@ const Register InterfaceDescriptor::ContextRegister() { return cp; }
|
|
|
|
|
| void CallDescriptors::InitializeForIsolate(Isolate* isolate) {
|
| + InitializeForIsolateAllPlatforms(isolate);
|
| +
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastNewClosureCall);
|
| + Register registers[] = {cp, a2};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastNewContextCall);
|
| + Register registers[] = {cp, a1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::ToNumberCall);
|
| + Register registers[] = {cp, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::NumberToStringCall);
|
| + Register registers[] = {cp, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastCloneShallowArrayCall);
|
| + Register registers[] = {cp, a3, a2, a1};
|
| + Representation representations[] = {
|
| + Representation::Tagged(), Representation::Tagged(),
|
| + Representation::Smi(), Representation::Tagged()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastCloneShallowObjectCall);
|
| + Register registers[] = {cp, a3, a2, a1, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CreateAllocationSiteCall);
|
| + Register registers[] = {cp, a2, a3};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::RegExpConstructResultCall);
|
| + Register registers[] = {cp, a2, a1, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::TransitionElementsKindCall);
|
| + Register registers[] = {cp, a0, a1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::ArrayConstructorConstantArgCountCall);
|
| + // register state
|
| + // cp -- context
|
| + // a0 -- number of arguments
|
| + // a1 -- function
|
| + // a2 -- allocation site with elements kind
|
| + Register registers[] = {cp, a1, a2};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::ArrayConstructorCall);
|
| + // stack param count needs (constructor pointer, and single argument)
|
| + Register registers[] = {cp, a1, a2, a0};
|
| + Representation representations[] = {
|
| + Representation::Tagged(), Representation::Tagged(),
|
| + Representation::Tagged(), Representation::Integer32()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::InternalArrayConstructorConstantArgCountCall);
|
| + // register state
|
| + // cp -- context
|
| + // a0 -- number of arguments
|
| + // a1 -- constructor function
|
| + Register registers[] = {cp, a1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::InternalArrayConstructorCall);
|
| + // stack param count needs (constructor pointer, and single argument)
|
| + Register registers[] = {cp, a1, a0};
|
| + Representation representations[] = {Representation::Tagged(),
|
| + Representation::Tagged(),
|
| + Representation::Integer32()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CompareNilCall);
|
| + Register registers[] = {cp, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::ToBooleanCall);
|
| + Register registers[] = {cp, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::BinaryOpCall);
|
| + Register registers[] = {cp, a1, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::BinaryOpWithAllocationSiteCall);
|
| + Register registers[] = {cp, a2, a1, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::StringAddCall);
|
| + Register registers[] = {cp, a1, a0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| +
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(CallDescriptorKey::ArgumentAdaptorCall);
|
|
|