Commit 2abe5cd2 authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

X87: [stubs] Convert Internal/ArraySingleArgumentsConstructor to a TurboFan stub.

  port 02c8b6f7 (r36463)

  original commit message:

BUG=

Review-Url: https://codereview.chromium.org/2000253004
Cr-Commit-Position: refs/heads/master@{#36468}
parent ccb24b84
...@@ -62,12 +62,6 @@ static void InitializeInternalArrayConstructorDescriptor( ...@@ -62,12 +62,6 @@ static void InitializeInternalArrayConstructorDescriptor(
} }
void ArraySingleArgumentConstructorStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
InitializeArrayConstructorDescriptor(isolate(), descriptor, 1);
}
void ArrayNArgumentsConstructorStub::InitializeDescriptor( void ArrayNArgumentsConstructorStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) { CodeStubDescriptor* descriptor) {
InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); InitializeArrayConstructorDescriptor(isolate(), descriptor, -1);
...@@ -79,12 +73,6 @@ void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { ...@@ -79,12 +73,6 @@ void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE); descriptor->Initialize(eax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
} }
void InternalArraySingleArgumentConstructorStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1);
}
void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( void InternalArrayNArgumentsConstructorStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) { CodeStubDescriptor* descriptor) {
InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1);
......
...@@ -257,17 +257,16 @@ void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( ...@@ -257,17 +257,16 @@ void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific(
data->InitializePlatformSpecific(arraysize(registers), registers, NULL); data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
} }
void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) { CallInterfaceDescriptorData* data) {
// register state // register state
// eax -- number of arguments // eax -- number of arguments
// edi -- function // edi -- function
// ebx -- allocation site with elements kind // ebx -- allocation site with elements kind
Register registers[] = {edi, ebx}; Register registers[] = {edi, ebx, eax};
data->InitializePlatformSpecific(arraysize(registers), registers, NULL); data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
} }
void ArrayConstructorDescriptor::InitializePlatformSpecific( void ArrayConstructorDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) { CallInterfaceDescriptorData* data) {
// stack param count needs (constructor pointer, and single argument) // stack param count needs (constructor pointer, and single argument)
...@@ -276,16 +275,6 @@ void ArrayConstructorDescriptor::InitializePlatformSpecific( ...@@ -276,16 +275,6 @@ void ArrayConstructorDescriptor::InitializePlatformSpecific(
} }
void InternalArrayConstructorConstantArgCountDescriptor::
InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
// register state
// eax -- number of arguments
// edi -- function
Register registers[] = {edi};
data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
}
void InternalArrayConstructorDescriptor::InitializePlatformSpecific( void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) { CallInterfaceDescriptorData* data) {
// stack param count needs (constructor pointer, and single argument) // stack param count needs (constructor pointer, and single argument)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment