์ฌ๋ณด์ธ์.
"The Book of the Runtime"์ "Method Descriptor" ์ฅ์์ ๋งํ๋ฏ์ด ๋ฐํ์์๋ MethodDesc์ ์ง์ ์ ๊ฐ์ 1:1 ๋งคํ์ ์์กดํ๋ ์ฌ๋ฌ ์์น๊ฐ ์์ต๋๋ค. ์ด๋ ๋ชจ๋ ๋ฉ์๋์ ๋ํด ์ฌ๋กฏ๊ณผ ์ง์ ์ ์ด ์กด์ฌํด์ผ ํ๋ค๋ ์๊ตฌ ์ฌํญ์ผ๋ก ์ด์ด์ง๋๋ค.
๋๊ตฐ๊ฐ๊ฐ ์ด๋ฌํ ์ฅ์๊ฐ ์ด๋์ ์์ผ๋ฉฐ ์ ํํ 1:1 ๋งคํ์ด ํ์ํ ์ด์ ๋ฅผ ์ค๋ช ํ ์ ์์ต๋๊น?
@Dmitri-Botcharnikov @ruben-ayrapetyan
ํ๋์ methoddesc๋ ์ฌ๋ฌ ์ง์ ์ ์ ๊ฐ์ง ์ ์์ต๋๋ค. ๊ฐ๊ฐ์ ๋ค์ ์ผ์นํ๋ MethodDesc์ ๋งคํํ ์ ์์ด์ผ ํฉ๋๋ค.
์ง์
์ -> MethodDesc ๋งคํ์ ํต์ฌ ๋ฐฉ๋ฒ์ MethodTable::GetMethodDescForSlotAddress
์
๋๋ค.
MethodDesc -> ํ์ฌ ์ง์
์ ๋งคํ์ ํต์ฌ ๋ฐฉ๋ฒ์ MethodDesc::GetMethodEntryPoint
์
๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
ํ๋์ methoddesc๋ ์ฌ๋ฌ ์ง์ ์ ์ ๊ฐ์ง ์ ์์ต๋๋ค. ๊ฐ๊ฐ์ ๋ค์ ์ผ์นํ๋ MethodDesc์ ๋งคํํ ์ ์์ด์ผ ํฉ๋๋ค.
์ง์ ์ -> MethodDesc ๋งคํ์ ํต์ฌ ๋ฐฉ๋ฒ์
MethodTable::GetMethodDescForSlotAddress
์ ๋๋ค.MethodDesc -> ํ์ฌ ์ง์ ์ ๋งคํ์ ํต์ฌ ๋ฐฉ๋ฒ์
MethodDesc::GetMethodEntryPoint
์ ๋๋ค.