Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index bd991e3119afebf0a69856d1a72a29302a1ebfc7..3721253bea1dfe2a0e082ccca0a2e93843737f3b 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2497,8 +2497,8 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
STATIC_ASSERT(kSeqStringTag == 0); |
__ tst(r0, Operand(kStringRepresentationMask)); |
// The underlying external string is never a short external string. |
- STATIC_CHECK(ExternalString::kMaxShortLength < ConsString::kMinLength); |
- STATIC_CHECK(ExternalString::kMaxShortLength < SlicedString::kMinLength); |
+ STATIC_ASSERT(ExternalString::kMaxShortLength < ConsString::kMinLength); |
+ STATIC_ASSERT(ExternalString::kMaxShortLength < SlicedString::kMinLength); |
__ b(ne, &external_string); // Go to (7). |
// (5) Sequential string. Load regexp code according to encoding. |
@@ -3677,7 +3677,7 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
// Handle external string. |
// Rule out short external strings. |
- STATIC_CHECK(kShortExternalStringTag != 0); |
+ STATIC_ASSERT(kShortExternalStringTag != 0); |
__ tst(r1, Operand(kShortExternalStringTag)); |
__ b(ne, &runtime); |
__ ldr(r5, FieldMemOperand(r5, ExternalString::kResourceDataOffset)); |