Index: src/mips/interface-descriptors-mips.cc |
diff --git a/src/mips/interface-descriptors-mips.cc b/src/mips/interface-descriptors-mips.cc |
index 3bbc583973bad948f3fcfcd0b19ecb0c59bc5383..41c451326dd43e48eb7fabd4ec1a18fd7f8a64fb 100644 |
--- a/src/mips/interface-descriptors-mips.cc |
+++ b/src/mips/interface-descriptors-mips.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); |