From 22f0c8c5d4b3604227187b9843737c23be75ba75 Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 13 Dec 2024 00:24:24 +0000 Subject: deploy: f06967bbe80d5647412a4b709b1d3de0fe056627 --- src/juicebox_asm/asm.rs.html | 58 ++++---------------------------------------- 1 file changed, 5 insertions(+), 53 deletions(-) (limited to 'src') diff --git a/src/juicebox_asm/asm.rs.html b/src/juicebox_asm/asm.rs.html index 1b159ca..ea2bff9 100644 --- a/src/juicebox_asm/asm.rs.html +++ b/src/juicebox_asm/asm.rs.html @@ -426,31 +426,7 @@ 425 426 427 -428 -429 -430 -431 -432 -433 -434 -435 -436 -437 -438 -439 -440 -441 -442 -443 -444 -445 -446 -447 -448 -449 -450 -451 -452
//! The `x64` jit assembler.
+428
//! The `x64` jit assembler.
 
 use crate::*;
 use imm::Imm;
@@ -656,7 +632,7 @@
     /// Encode a memory-immediate instruction.
     pub(crate) fn encode_mi<M: Mem, T: Imm>(&mut self, opc: u8, opc_ext: u8, op1: M, op2: T)
     where
-        Self: EncodeMI<M>,
+        Self: EncodeM<M>,
     {
         // MI operand encoding.
         //   op1 -> modrm.rm
@@ -686,8 +662,8 @@
             rm,      /* rm */
         );
 
-        let prefix = <Self as EncodeMI<M>>::legacy_prefix();
-        let rex = <Self as EncodeMI<M>>::rex(&op1);
+        let prefix = <Self as EncodeM<M>>::legacy_prefix();
+        let rex = <Self as EncodeM<M>>::rex(&op1);
 
         self.emit_optional(&[prefix, rex]);
         self.emit(&[opc, modrm]);
@@ -855,31 +831,7 @@
 impl EncodeMR<Mem32> for Asm {}
 impl EncodeMR<Mem64> for Asm {}
 
-/// Encode helper for memory-immediate instructions.
-pub(crate) trait EncodeMI<M: Mem> {
-    fn legacy_prefix() -> Option<u8> {
-        None
-    }
-
-    fn rex(op1: &M) -> Option<u8> {
-        if M::is_64() || op1.base().is_ext() || op1.index().is_ext() {
-            Some(rex(M::is_64(), 0, op1.index().idx(), op1.base().idx()))
-        } else {
-            None
-        }
-    }
-}
-
-impl EncodeMI<Mem8> for Asm {}
-impl EncodeMI<Mem16> for Asm {
-    fn legacy_prefix() -> Option<u8> {
-        Some(0x66)
-    }
-}
-impl EncodeMI<Mem32> for Asm {}
-impl EncodeMI<Mem64> for Asm {}
-
-/// Encode helper for memory operand instructions.
+/// Encode helper for memory perand instructions.
 pub(crate) trait EncodeM<M: Mem> {
     fn legacy_prefix() -> Option<u8> {
         None
-- 
cgit v1.2.3