diff options
Diffstat (limited to 'src/juicebox_asm/asm.rs.html')
-rw-r--r-- | src/juicebox_asm/asm.rs.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/juicebox_asm/asm.rs.html b/src/juicebox_asm/asm.rs.html index e58260d..4418397 100644 --- a/src/juicebox_asm/asm.rs.html +++ b/src/juicebox_asm/asm.rs.html @@ -343,6 +343,7 @@ <a href="#342" id="342">342</a> <a href="#343" id="343">343</a> <a href="#344" id="344">344</a> +<a href="#345" id="345">345</a> </pre></div><pre class="rust"><code><span class="doccomment">//! The `x64` jit assembler. </span><span class="kw">use crate</span>::<span class="kw-2">*</span>; @@ -437,7 +438,7 @@ <span class="comment">// -- Encode utilities. </span><span class="doccomment">/// Encode an register-register instruction. - </span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>encode_rr<T: Reg>(<span class="kw-2">&mut </span><span class="self">self</span>, opc: u8, op1: T, op2: T) + </span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>encode_rr<T: Reg>(<span class="kw-2">&mut </span><span class="self">self</span>, opc: <span class="kw-2">&</span>[u8], op1: T, op2: T) <span class="kw">where </span><span class="self">Self</span>: EncodeRR<T>, { @@ -454,7 +455,8 @@ <span class="kw">let </span>rex = <<span class="self">Self </span><span class="kw">as </span>EncodeRR<T>>::rex(op1, op2); <span class="self">self</span>.emit_optional(<span class="kw-2">&</span>[prefix, rex]); - <span class="self">self</span>.emit(<span class="kw-2">&</span>[opc, modrm]); + <span class="self">self</span>.emit(opc); + <span class="self">self</span>.emit(<span class="kw-2">&</span>[modrm]); } <span class="doccomment">/// Encode an offset-immediate instruction. |