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
//! `FieldPtr` table loader implementation.
//!
//! This module provides the [`crate::metadata::tables::fieldptr::loader::FieldPtrLoader`] responsible for loading and processing
//! `FieldPtr` metadata table entries. The `FieldPtr` table acts as an indirection mechanism
//! for the Field table when field ordering differs between logical and physical layout.
//!
//! # Purpose
//! The `FieldPtr` table is used in specific optimization scenarios:
//! - **Field reordering**: When physical field order differs from logical declaration order
//! - **Metadata optimization**: Reducing metadata size through indirection
//! - **Edit-and-continue**: Supporting field additions without breaking existing references
//! - **Incremental compilation**: Maintaining field references across compilation sessions
//!
//! # Table Usage
//! The `FieldPtr` table is optional and only present when field indirection is needed:
//! - **Without `FieldPtr`**: Direct indexing into Field table
//! - **With `FieldPtr`**: Indirect indexing through `FieldPtr` → Field
//!
//! # ECMA-335 Reference
//! See ECMA-335, Partition II, §22.18 for the `FieldPtr` table specification.
use crate::;
/// Loader implementation for the `FieldPtr` metadata table.
///
/// This loader processes `FieldPtr` table entries which provide indirection for field
/// references when the logical field order differs from the physical storage order.
/// The `FieldPtr` table is an optimization mechanism used in specific scenarios.
///
/// # Errors
/// - Raw-to-owned conversion encounters issues
/// - Collection insertion operations fail
/// - Memory allocation fails during processing
///
/// # ECMA-335 Reference
/// See ECMA-335, Partition II, §22.18 for complete `FieldPtr` table specification.
;