Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 976576be6f4cc1a8ce932e14369f034d60bfc09c..03ea929d88ffb0fde58ccf6f718cd48997501e89 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3509,7 +3509,8 @@ void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
// Dispatch on the encoding: ASCII or two-byte. |
Label ascii_string; |
- STATIC_ASSERT(kAsciiStringTag != 0); |
+ STATIC_ASSERT((kStringEncodingMask & kAsciiStringTag) != 0); |
+ STATIC_ASSERT((kStringEncodingMask & kTwoByteStringTag) == 0); |
__ tst(result, Operand(kStringEncodingMask)); |
__ b(ne, &ascii_string); |