Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 799ba73a26328d62e60c36807af3d3ef0dcf8335..43f733f0dd55e927e8bc26ce591dfe746e2faf41 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3199,7 +3199,7 @@ void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) { |
Label done, not_found; |
// tmp now holds finger offset as a smi. |
- ASSERT(kSmiTag == 0 && kSmiTagSize == 1); |
+ STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1); |
__ mov(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); |
__ cmp(key, CodeGenerator::FixedArrayElementOperand(cache, tmp)); |
__ j(not_equal, ¬_found); |
@@ -4242,8 +4242,8 @@ void FullCodeGenerator::EnterFinallyBlock() { |
ASSERT(!result_register().is(edx)); |
__ pop(edx); |
__ sub(Operand(edx), Immediate(masm_->CodeObject())); |
- ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); |
- ASSERT_EQ(0, kSmiTag); |
+ STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 1); |
+ STATIC_ASSERT(kSmiTag == 0); |
__ SmiTag(edx); |
__ push(edx); |
// Store result register while executing finally block. |