Commit c6a6ff7
committed
Remove tree-walking legacy: Value::Object, JSObjectData, and related dead code
- Remove Value::Object variant and all match arms referencing it in vm.rs
- Delete JSObjectData struct, JSObjectDataPtr alias, and new_js_object_data fn
- Delete InternalSlot enum (~200 variants) and str_to_internal_slot function
- Remove PropertyKey::Internal variant and its From/PartialEq/Hash/Display impls
- Delete dead Value variants: Getter, Setter, Generator, AsyncGenerator, Promise, Map, Set, WeakMap, WeakSet, TypedArray
- Delete tree-walking types: JSGenerator, JSAsyncGenerator, GeneratorState, AsyncGeneratorRequest, GeneratorForAwaitState, GeneratorForOfState, AsyncForAwaitState, GeneratorPendingCompletion
- Delete tree-walking collection types: JSMap, JSSet, WeakKey, JSWeakMap, JSWeakSet
- Delete JSPromise, PromiseState, generate_unique_id (replaced by VM promise handling)
- Remove JSObjectData impl block (new, lookup_property, set_prototype, etc.)
- Clean ClosureData: remove env, home_object, captured_envs fields and new() impl
- Remove helper functions: object_get_key_value, object_set_key_value, env_set, slot_get, slot_get_chained, object_get_length
- Remove is_error function from js_error.rs
- Simplify EvalError-to-JSError conversion (drop Value::Object error mapping)
- Clean lib.rs re-exports: remove JSObjectData, new_js_object_data, env_set, object_get/set_key_value
- Remove stale commented-out InternalSlot usage in mod.rs
- Remove unused pub use js_error::* re-export1 parent 8150850 commit c6a6ff7
6 files changed
Lines changed: 124 additions & 1720 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 24 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 25 | + | |
55 | 26 | | |
56 | 27 | | |
57 | 28 | | |
| |||
68 | 39 | | |
69 | 40 | | |
70 | 41 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
| |||
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 44 | | |
54 | 45 | | |
55 | 46 | | |
| |||
74 | 65 | | |
75 | 66 | | |
76 | 67 | | |
77 | | - | |
78 | 68 | | |
79 | 69 | | |
80 | 70 | | |
| |||
96 | 86 | | |
97 | 87 | | |
98 | 88 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 89 | | |
104 | 90 | | |
105 | 91 | | |
| |||
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
112 | | - | |
113 | 98 | | |
114 | 99 | | |
115 | 100 | | |
| |||
119 | 104 | | |
120 | 105 | | |
121 | 106 | | |
122 | | - | |
123 | 107 | | |
124 | 108 | | |
125 | 109 | | |
0 commit comments