Bug 598486 - nanojit: clarify semantics of comparisons. r=edwsmith.

--HG--
extra : convert_revision : 2c8245cb9048cc79ca561ec7a7b014249788247c
This commit is contained in:
Nicholas Nethercote 2010-09-26 22:36:16 -07:00
parent a9ecc87093
commit 7d32b0e525

View File

@ -209,7 +209,9 @@ OP_UN(52)
// Comparisons
//---------------------------------------------------------------------------
// Within each size group, order must be preserved so that, except for eq*, (op
// All comparisons return an int: 0 on failure and 1 on success.
//
// Within each type group, order must be preserved so that, except for eq*, (op
// ^ 1) gives the opposite one (eg. lt ^ 1 == gt). eq* must have odd numbers
// for this to work. They must also remain contiguous so that opcode range
// checking works correctly. Static assertions in LIR.h check these