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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//! `MethodPtr` table loader implementation.
//!
//! This module provides the [`MethodPtrLoader`] responsible for loading and processing
//! `MethodPtr` metadata table entries. The `MethodPtr` table provides an additional level
//! of indirection for accessing `MethodDef` table entries, primarily used for method
//! editing scenarios where method table reorganization is required.
//!
//! # Purpose
//! The `MethodPtr` table serves specialized metadata manipulation scenarios:
//! - **Method table indirection**: Provides stable references during method table reorganization
//! - **Edit-and-continue**: Supports runtime method modification and hot-swapping
//! - **Method versioning**: Enables method replacement without breaking existing references
//! - **Debugging support**: Facilitates debugger method interception and modification
//! - **Incremental compilation**: Allows method updates without full assembly recompilation
//!
//! # Indirection Mechanism
//! `MethodPtr` entries create a logical-to-physical mapping:
//! - **Logical references**: Stable method identifiers used by other metadata tables
//! - **Physical references**: Actual `MethodDef` table entries containing implementation
//! - **Pointer resolution**: Translation from logical to physical method references
//! - **Table reorganization**: Allows `MethodDef` table modifications without breaking references
//!
//! # Usage Context
//! The `MethodPtr` table is optional and typically present only in specialized scenarios:
//! - **Development environments**: IDEs with edit-and-continue functionality
//! - **Debugging sessions**: Debuggers requiring method interception capabilities
//! - **Hot-reload systems**: Runtime environments supporting dynamic method updates
//! - **Incremental builds**: Build systems performing partial assembly updates
//!
//! # Table Dependencies
//! The `MethodPtr` table has no dependencies and must be loaded before other tables
//! that reference methods, as it affects method token resolution throughout the system.
//!
//! # ECMA-335 Reference
//! See ECMA-335, Partition II, ยง22.28 for the `MethodPtr` table specification.
//!
//! [`MethodPtrLoader`]: crate::metadata::tables::MethodPtrLoader
use crate::;
/// Loader implementation for the `MethodPtr` metadata table.
///
/// This loader processes method pointer metadata, establishing indirection mappings
/// between logical method references and physical `MethodDef` table entries. It handles
/// the specialized scenarios where method table reorganization or runtime method
/// modification requires stable method reference resolution.
pub ;