summaryrefslogtreecommitdiff
path: root/src/vm/i386
diff options
context:
space:
mode:
authorAaron Robinson <arobins@microsoft.com>2018-07-23 03:30:57 -0700
committerJan Kotas <jkotas@microsoft.com>2018-07-23 03:30:57 -0700
commit92d2c4bde42569d2aa22e44550d69f7d743bf9a0 (patch)
tree7e2d617278db482306fb7b6f62c9f53545d917d8 /src/vm/i386
parentcc96914f80b6873c555d0ed377042537ef99f1af (diff)
downloadcoreclr-92d2c4bde42569d2aa22e44550d69f7d743bf9a0.tar.gz
coreclr-92d2c4bde42569d2aa22e44550d69f7d743bf9a0.tar.bz2
coreclr-92d2c4bde42569d2aa22e44550d69f7d743bf9a0.zip
Remove hosthook api (#19079)
* Remove CallNeedsHostHook() API * Remove IsHostHookEnabled() API and with it related dead code * Remove code enabling host hooks (i.e. COMPlus_GenerateStubForHost) Remove function declarations for creating host hooks Update comments
Diffstat (limited to 'src/vm/i386')
-rw-r--r--src/vm/i386/cgenx86.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/vm/i386/cgenx86.cpp b/src/vm/i386/cgenx86.cpp
index e222607a60..c3f76c8b52 100644
--- a/src/vm/i386/cgenx86.cpp
+++ b/src/vm/i386/cgenx86.cpp
@@ -1048,7 +1048,7 @@ Stub *GenerateInitPInvokeFrameHelper()
#ifdef MDA_SUPPORTED
//-----------------------------------------------------------------------------
-Stub *NDirectMethodDesc::GenerateStubForMDA(LPVOID pNativeTarget, Stub *pInnerStub, BOOL fCalledByStub)
+Stub *NDirectMethodDesc::GenerateStubForMDA(LPVOID pNativeTarget, Stub *pInnerStub)
{
STANDARD_VM_CONTRACT;
@@ -1079,17 +1079,7 @@ Stub *NDirectMethodDesc::GenerateStubForMDA(LPVOID pNativeTarget, Stub *pInnerSt
if (IsVarArgs())
{
// Re-push the return address as an argument to GetStackSizeForVarArgCall()
- if (fCalledByStub)
- {
- // We will be called by another stub that doesn't know the stack size,
- // so we need to skip a frame to get to the managed caller.
- sl.X86EmitIndexRegLoad(kEAX, kEBP, 0);
- sl.X86EmitIndexPush(kEAX, 4);
- }
- else
- {
- sl.X86EmitIndexPush(kEBP, 4);
- }
+ sl.X86EmitIndexPush(kEBP, 4);
// This will return the number of stack arguments (in DWORDs)
sl.X86EmitCall(sl.NewExternalCodeLabel((LPVOID)GetStackSizeForVarArgCall), 4);