You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/jit/backend.go
+22-16Lines changed: 22 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -126,11 +126,11 @@ func max(a, b int32) int32 {
126
126
returnb
127
127
}
128
128
129
-
funcpcdelta(ctxt*obj.Link, p*obj.Prog) uint32 {
130
-
ifp.Link!=nil {
131
-
returnuint32(p.Link.Pc/int64(ctxt.Arch.MinLC))
129
+
funcnextPc(p*obj.Prog) uint32 {
130
+
ifp.Link!=nil&&p.Pc+int64(p.Isize) !=p.Link.Pc{
131
+
panic("p.PC + p.Isize != p.Link.PC")
132
132
}
133
-
returnuint32(p.Pc/int64(ctxt.Arch.MinLC))
133
+
returnuint32(p.Pc+int64(p.Isize))
134
134
}
135
135
136
136
// NOTE: copied from https://github.com/twitchyliquid64/golang-asm/blob/8d7f1f783b11f9a00f5bcdfcae17f5ac8f22512e/obj/x86/obj6.go#L811.
0 commit comments