value.slotNum = (DWORD)slotNum;
value.addlDelta = (DWORD)addlDelta;
+ Assert(value.slotNum == 0);
+
RecordRelocation->Append(value);
}
(DWORD)tmp.target);
*(DWORD*)address = (DWORD)tmp.target;
}
- if (tmp.addlDelta != 0)
- __debugbreak();
- if (tmp.slotNum != 0)
- __debugbreak();
}
break;
#endif // _TARGET_X86_
WORD slotNum /* = 0 */, /* IN */
INT32 addlDelta /* = 0 */) /* IN */
{
+ assert(slotNum == 0); // It is unused on all supported platforms.
+
// If we're an unmatched altjit, don't tell the VM anything. We still record the relocation for
// late disassembly; maybe we'll need it?
if (emitComp->info.compMatchedVM)
#ifdef _TARGET_AMD64_
// all these opcodes only take a sign-extended 4-byte immediate
noway_assert(opsz < 8 || ((int)cval == cval && !addc->cnsReloc));
-#else
+#else //_TARGET_X86_
noway_assert(opsz <= 4);
-#endif
+#endif //_TARGET_X86_
switch (opsz)
{
#ifdef _TARGET_AMD64_
// all these opcodes only take a sign-extended 4-byte immediate
noway_assert(opsz < 8 || ((int)cval == cval && !addc->cnsReloc));
-#else
+#else //_TARGET_X86_
noway_assert(opsz <= 4);
-#endif
+#endif //_TARGET_X86_
switch (opsz)
{