Skip to content

Commit f38fb34

Browse files
authored
refactor(set): move larger fields first (#894)
1 parent a1ef682 commit f38fb34

File tree

1 file changed

+2
-2
lines changed
  • nova_vm/src/ecmascript/builtins/set

1 file changed

+2
-2
lines changed

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

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

2222
#[derive(Debug, Default, SoAble)]
2323
pub struct SetHeapData<'a> {
24-
pub(crate) object_index: Option<OrdinaryObject<'a>>,
24+
pub(crate) set_data: RefCell<HashTable<u32>>,
2525
pub(crate) values: Vec<Option<Value<'a>>>,
26+
pub(crate) object_index: Option<OrdinaryObject<'a>>,
2627
/// Low-level hash table pointing to value indexes.
27-
pub(crate) set_data: RefCell<HashTable<u32>>,
2828
/// Flag that lets the Set know if it needs to rehash its primitive keys.
2929
///
3030
/// This happens when an object key needs to be moved in the set_data

0 commit comments

Comments
 (0)