Skip to content

Commit

Permalink
Update to MMTK core PR #1159 (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: mmtkgc-bot <[email protected]>
  • Loading branch information
qinsoon and mmtkgc-bot authored Jul 11, 2024
1 parent 13659a7 commit 6a1b56b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
8 changes: 4 additions & 4 deletions mmtk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ log = "*"
# - change branch
# - change repo name
# But other changes including adding/removing whitespaces in commented lines may break the CI.
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "56b2521d2b99848ee0613a0a5288fe6d81b754ba" }
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "a3a72f8e5795678eff06fdc1524f0b429a62ccc0" }
# Uncomment the following and fix the path to mmtk-core to build locally
# mmtk = { path = "../repos/mmtk-core" }

Expand Down
9 changes: 1 addition & 8 deletions mmtk/src/object_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,7 @@ impl ObjectModel<V8> for VMObjectModel {
object.to_raw_address()
}

fn ref_to_address(object: ObjectReference) -> Address {
object.to_raw_address()
}

fn address_to_ref(address: Address) -> ObjectReference {
debug_assert!(!address.is_zero());
unsafe { ObjectReference::from_raw_address_unchecked(address) }
}
const IN_OBJECT_ADDRESS_OFFSET: isize = 0;

fn dump_object(object: ObjectReference) {
unsafe {
Expand Down

0 comments on commit 6a1b56b

Please sign in to comment.