| Index: src/arm64/interface-descriptors-arm64.cc
|
| diff --git a/src/arm64/interface-descriptors-arm64.cc b/src/arm64/interface-descriptors-arm64.cc
|
| index cc1dc872b27b890affb3d62049d0f43793741f3d..1bea2bae0a1c16c858197eb344db54383289cad6 100644
|
| --- a/src/arm64/interface-descriptors-arm64.cc
|
| +++ b/src/arm64/interface-descriptors-arm64.cc
|
| @@ -21,6 +21,195 @@ void CallDescriptors::InitializeForIsolate(Isolate* isolate) {
|
| static PlatformInterfaceDescriptor noInlineDescriptor =
|
| PlatformInterfaceDescriptor(NEVER_INLINE_TARGET_ADDRESS);
|
|
|
| + InitializeForIsolateAllPlatforms(isolate);
|
| +
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastNewClosureCall);
|
| + // cp: context
|
| + // x2: function info
|
| + Register registers[] = {cp, x2};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastNewContextCall);
|
| + // cp: context
|
| + // x1: function
|
| + Register registers[] = {cp, x1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::ToNumberCall);
|
| + // cp: context
|
| + // x0: value
|
| + Register registers[] = {cp, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::NumberToStringCall);
|
| + // cp: context
|
| + // x0: value
|
| + Register registers[] = {cp, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastCloneShallowArrayCall);
|
| + // cp: context
|
| + // x3: array literals array
|
| + // x2: array literal index
|
| + // x1: constant elements
|
| + Register registers[] = {cp, x3, x2, x1};
|
| + Representation representations[] = {
|
| + Representation::Tagged(), Representation::Tagged(),
|
| + Representation::Smi(), Representation::Tagged()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::FastCloneShallowObjectCall);
|
| + // cp: context
|
| + // x3: object literals array
|
| + // x2: object literal index
|
| + // x1: constant properties
|
| + // x0: object literal flags
|
| + Register registers[] = {cp, x3, x2, x1, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CreateAllocationSiteCall);
|
| + // cp: context
|
| + // x2: feedback vector
|
| + // x3: call feedback slot
|
| + Register registers[] = {cp, x2, x3};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CallFunctionCall);
|
| + // x1 function the function to call
|
| + Register registers[] = {cp, x1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CallConstructCall);
|
| + // x0 : number of arguments
|
| + // x1 : the function to call
|
| + // x2 : feedback vector
|
| + // x3 : slot in feedback vector (smi) (if r2 is not the megamorphic symbol)
|
| + // TODO(turbofan): So far we don't gather type feedback and hence skip the
|
| + // slot parameter, but ArrayConstructStub needs the vector to be undefined.
|
| + Register registers[] = {cp, x0, x1, x2};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::RegExpConstructResultCall);
|
| + // cp: context
|
| + // x2: length
|
| + // x1: index (of last match)
|
| + // x0: string
|
| + Register registers[] = {cp, x2, x1, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::TransitionElementsKindCall);
|
| + // cp: context
|
| + // x0: value (js_array)
|
| + // x1: to_map
|
| + Register registers[] = {cp, x0, x1};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::ArrayConstructorConstantArgCountCall);
|
| + // cp: context
|
| + // x1: function
|
| + // x2: allocation site with elements kind
|
| + // x0: number of arguments to the constructor function
|
| + Register registers[] = {cp, x1, x2};
|
| + 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, x1, x2, x0};
|
| + Representation representations[] = {
|
| + Representation::Tagged(), Representation::Tagged(),
|
| + Representation::Tagged(), Representation::Integer32()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::InternalArrayConstructorConstantArgCountCall);
|
| + // cp: context
|
| + // x1: constructor function
|
| + // x0: number of arguments to the constructor function
|
| + Register registers[] = {cp, x1};
|
| + 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, x1, x0};
|
| + Representation representations[] = {Representation::Tagged(),
|
| + Representation::Tagged(),
|
| + Representation::Integer32()};
|
| + descriptor->Initialize(arraysize(registers), registers, representations);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::CompareNilCall);
|
| + // cp: context
|
| + // x0: value to compare
|
| + Register registers[] = {cp, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::ToBooleanCall);
|
| + // cp: context
|
| + // x0: value
|
| + Register registers[] = {cp, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::BinaryOpCall);
|
| + // cp: context
|
| + // x1: left operand
|
| + // x0: right operand
|
| + Register registers[] = {cp, x1, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor = isolate->call_descriptor(
|
| + CallDescriptorKey::BinaryOpWithAllocationSiteCall);
|
| + // cp: context
|
| + // x2: allocation site
|
| + // x1: left operand
|
| + // x0: right operand
|
| + Register registers[] = {cp, x2, x1, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| + {
|
| + CallInterfaceDescriptor* descriptor =
|
| + isolate->call_descriptor(CallDescriptorKey::StringAddCall);
|
| + // cp: context
|
| + // x1: left operand
|
| + // x0: right operand
|
| + Register registers[] = {cp, x1, x0};
|
| + descriptor->Initialize(arraysize(registers), registers, NULL);
|
| + }
|
| +
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(CallDescriptorKey::ArgumentAdaptorCall);
|
|
|