From: Jonghyun Park Date: Mon, 27 Feb 2017 02:41:48 +0000 (+0900) Subject: [x86/Linux] Clean up ARRAY STUB(s) (dotnet/coreclr#9811) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659fcc7e2941d7ff0c3f6968bf5077a9f54e9775;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [x86/Linux] Clean up ARRAY STUB(s) (dotnet/coreclr#9811) Commit migrated from https://github.com/dotnet/coreclr/commit/a2a132767ef30fcc807253978bcc6f92670ebc87 --- diff --git a/src/coreclr/src/vm/i386/asmhelpers.S b/src/coreclr/src/vm/i386/asmhelpers.S index 2bb9560..2f57b9e 100644 --- a/src/coreclr/src/vm/i386/asmhelpers.S +++ b/src/coreclr/src/vm/i386/asmhelpers.S @@ -249,46 +249,6 @@ NESTED_ENTRY StubRareDisableTHROW, _TEXT, NoHandler ret NESTED_END StubRareDisableTHROW, _TEXT -LEAF_ENTRY InternalExceptionWorker, _TEXT - pop edx // recover RETADDR - add esp, eax // release caller's args - push edx // restore RETADDR - jmp C_FUNC(JIT_InternalThrow) -LEAF_END InternalExceptionWorker, _TEXT - -// EAX -> number of caller arg bytes on the stack that we must remove before going -// to the throw helper, which assumes the stack is clean. -LEAF_ENTRY ArrayOpStubNullException, _TEXT - // kFactorReg and kTotalReg could not have been modified, but let's pop - // them anyway for consistency and to avoid future bugs. - pop esi - pop edi - mov ecx, CORINFO_NullReferenceException_ASM - jmp C_FUNC(InternalExceptionWorker) -LEAF_END ArrayOpStubNullException, _TEXT - -// EAX -> number of caller arg bytes on the stack that we must remove before going -// to the throw helper, which assumes the stack is clean. -LEAF_ENTRY ArrayOpStubRangeException, _TEXT - // kFactorReg and kTotalReg could not have been modified, but let's pop - // them anyway for consistency and to avoid future bugs. - pop esi - pop edi - mov ecx, CORINFO_IndexOutOfRangeException_ASM - jmp C_FUNC(InternalExceptionWorker) -LEAF_END ArrayOpStubRangeException, _TEXT - -// EAX -> number of caller arg bytes on the stack that we must remove before going -// to the throw helper, which assumes the stack is clean. -LEAF_ENTRY ArrayOpStubTypeMismatchException, _TEXT - // kFactorReg and kTotalReg could not have been modified, but let's pop - // them anyway for consistency and to avoid future bugs. - pop esi - pop edi - mov ecx, CORINFO_ArrayTypeMismatchException_ASM - jmp C_FUNC(InternalExceptionWorker) -LEAF_END ArrayOpStubTypeMismatchException, _TEXT - // ------------------------------------------------------------------------------ // This helper routine enregisters the appropriate arguments and makes the // actual call.