summaryrefslogtreecommitdiff
path: root/src/jit/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/compiler.h')
-rw-r--r--src/jit/compiler.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h
index 3eb2fdcb83..e3a4b519c7 100644
--- a/src/jit/compiler.h
+++ b/src/jit/compiler.h
@@ -5560,7 +5560,8 @@ public:
OAK_EQUAL,
OAK_NOT_EQUAL,
OAK_SUBRANGE,
- OAK_NO_THROW };
+ OAK_NO_THROW,
+ OAK_COUNT };
enum optOp1Kind { O1K_INVALID,
O1K_LCLVAR,
@@ -5569,7 +5570,8 @@ public:
O1K_ARRLEN_LOOP_BND,
O1K_CONSTANT_LOOP_BND,
O1K_EXACT_TYPE,
- O1K_SUBTYPE };
+ O1K_SUBTYPE,
+ O1K_COUNT };
enum optOp2Kind { O2K_INVALID,
O2K_LCLVAR_COPY,
@@ -5578,7 +5580,8 @@ public:
O2K_CONST_LONG,
O2K_CONST_DOUBLE,
O2K_ARR_LEN,
- O2K_SUBRANGE };
+ O2K_SUBRANGE,
+ O2K_COUNT };
struct AssertionDsc
{
optAssertionKind assertionKind;
@@ -5754,6 +5757,10 @@ public:
case O2K_INVALID:
// we will return false
break;
+
+ default:
+ assert(!"Unexpected value for op2.kind in AssertionDsc.");
+ break;
}
return false;
}
@@ -5892,6 +5899,7 @@ public :
#ifdef DEBUG
void optPrintAssertion(AssertionDsc* newAssertion, AssertionIndex assertionIndex=0);
+ void optDebugCheckAssertion(AssertionDsc* assertion);
void optDebugCheckAssertions(AssertionIndex AssertionIndex);
#endif
void optAddCopies();