Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c6aba6

Browse files
forkiKevinRansom
authored andcommitted
Remove double lookup in ilwrite (#4787)
1 parent7a886e1 commit1c6aba6

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

‎src/absil/ilwrite.fs‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,18 +1638,16 @@ module Codebuf =
16381638
match i, tgswith
16391639
|(_, Some i_short),[tg]
16401640
when
1641-
begin
1642-
// Use the original offsets to compute if the branch is small or large. This is
1643-
// a safe approximation because code only gets smaller.
1644-
ifnot(origAvailBrFixups.ContainsKey tg)then
1645-
dprintn("branch target"+ formatCodeLabel tg+" not found in code")
1646-
letorigDest=
1647-
match origAvailBrFixups.TryGetValue(tg)with
1641+
// Use the original offsets to compute if the branch is small or large. This is
1642+
// a safe approximation because code only gets smaller.
1643+
(letorigDest=
1644+
match origAvailBrFixups.TryGetValue tgwith
16481645
|true, fixup-> fixup
1649-
|_->666666
1646+
|_->
1647+
dprintn("branch target"+ formatCodeLabel tg+" not found in code")
1648+
666666
16501649
letorigRelOffset= origDest- origEndOfInstr
1651-
-128<= origRelOffset&& origRelOffset<=127
1652-
end
1650+
-128<= origRelOffset&& origRelOffset<=127)
16531651
->
16541652
newCode.EmitIntAsByte i_short
16551653
true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp