blob: 86a97756326a170b9adb2b37555ac041116326b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
include <AsmMacros.inc>
include AsmConstants.inc
extern PreStubWorker:proc
extern ProcessCLRException:proc
NESTED_ENTRY ThePreStub, _TEXT, ProcessCLRException
PROLOG_WITH_TRANSITION_BLOCK
;
; call PreStubWorker
;
lea rcx, [rsp + __PWTB_TransitionBlock] ; pTransitionBlock*
mov rdx, METHODDESC_REGISTER
call PreStubWorker
EPILOG_WITH_TRANSITION_BLOCK_TAILCALL
TAILJMP_RAX
NESTED_END ThePreStub, _TEXT
LEAF_ENTRY ThePreStubPatch, _TEXT
; make sure that the basic block is unique
test eax,34
PATCH_LABEL ThePreStubPatchLabel
ret
LEAF_END ThePreStubPatch, _TEXT
end
|