aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/asm.rs.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-03-18 22:02:54 +0000
committerjohannst <johannst@users.noreply.github.com>2024-03-18 22:02:54 +0000
commit52a0308e18fbbec25f0e9f31ec8f11589a35f351 (patch)
tree522424f6d94aeb9c3fff16a109c5f85efb97d66c /src/juicebox_asm/asm.rs.html
parent596eaec7fa9678939031eb1a434735c51f3ecec2 (diff)
downloadjuicebox-asm-52a0308e18fbbec25f0e9f31ec8f11589a35f351.tar.gz
juicebox-asm-52a0308e18fbbec25f0e9f31ec8f11589a35f351.zip
deploy: 7653ced7e8ce18b9ada2b666c63832007f8becf2
Diffstat (limited to 'src/juicebox_asm/asm.rs.html')
-rw-r--r--src/juicebox_asm/asm.rs.html6
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&lt;T: Reg&gt;(<span class="kw-2">&amp;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&lt;T: Reg&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, opc: <span class="kw-2">&amp;</span>[u8], op1: T, op2: T)
<span class="kw">where
</span><span class="self">Self</span>: EncodeRR&lt;T&gt;,
{
@@ -454,7 +455,8 @@
<span class="kw">let </span>rex = &lt;<span class="self">Self </span><span class="kw">as </span>EncodeRR&lt;T&gt;&gt;::rex(op1, op2);
<span class="self">self</span>.emit_optional(<span class="kw-2">&amp;</span>[prefix, rex]);
- <span class="self">self</span>.emit(<span class="kw-2">&amp;</span>[opc, modrm]);
+ <span class="self">self</span>.emit(opc);
+ <span class="self">self</span>.emit(<span class="kw-2">&amp;</span>[modrm]);
}
<span class="doccomment">/// Encode an offset-immediate instruction.