Merge pull request #2390 from bjorn3/more_simplejit_refactors

More SimpleJIT refactorings
This commit is contained in:
Pat Hickey
2020-11-11 11:16:04 -08:00
committed by GitHub
21 changed files with 263 additions and 446 deletions

View File

@@ -72,10 +72,6 @@ impl binemit::CodeSink for TextSink {
self.offset += 8;
}
fn reloc_block(&mut self, reloc: binemit::Reloc, block_offset: binemit::CodeOffset) {
write!(self.text, "{}({}) ", reloc, block_offset).unwrap();
}
fn reloc_external(
&mut self,
_srcloc: ir::SourceLoc,

View File

@@ -109,7 +109,6 @@ impl binemit::CodeSink for SizeSink {
self.offset += 8;
}
fn reloc_block(&mut self, _reloc: binemit::Reloc, _block_offset: binemit::CodeOffset) {}
fn reloc_external(
&mut self,
_srcloc: ir::SourceLoc,

View File

@@ -106,7 +106,6 @@ impl binemit::CodeSink for RodataSink {
}
}
fn reloc_block(&mut self, _reloc: binemit::Reloc, _block_offset: binemit::CodeOffset) {}
fn reloc_external(
&mut self,
_: ir::SourceLoc,

View File

@@ -79,7 +79,6 @@ impl CodeSink for TestStackMapsSink {
self.offset += 8;
}
fn reloc_block(&mut self, _: Reloc, _: CodeOffset) {}
fn reloc_external(&mut self, _: SourceLoc, _: Reloc, _: &ExternalName, _: Addend) {}
fn reloc_constant(&mut self, _: Reloc, _: ConstantOffset) {}
fn reloc_jt(&mut self, _: Reloc, _: JumpTable) {}