Skip to content

Commit 4f52e85

Browse files
committed
refactor(map): reorder fields in MapHeapData
1 parent c8429aa commit 4f52e85

File tree

1 file changed

+3
-3
lines changed
  • nova_vm/src/ecmascript/builtins/map

1 file changed

+3
-3
lines changed

nova_vm/src/ecmascript/builtins/map/data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ use soavec_derive::SoAble;
2121

2222
#[derive(Debug, Default, SoAble)]
2323
pub struct MapHeapData<'a> {
24+
/// Low-level hash table pointing to keys-values indexes.
25+
pub(crate) map_data: RefCell<HashTable<u32>>,
2426
// TODO: Use a ParallelVec to remove one unnecessary allocation.
2527
// pub(crate) key_values: ParallelVec<Option<Value>, Option<Value>>
26-
pub(crate) keys: Vec<Option<Value<'a>>>,
2728
pub(crate) values: Vec<Option<Value<'a>>>,
28-
/// Low-level hash table pointing to keys-values indexes.
29-
pub(crate) map_data: RefCell<HashTable<u32>>,
29+
pub(crate) keys: Vec<Option<Value<'a>>>,
3030
pub(crate) object_index: Option<OrdinaryObject<'a>>,
3131
/// Flag that lets the Map know if it needs to rehash its primitive keys.
3232
///

0 commit comments

Comments
 (0)