Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 5f4c9b4e41117133ced7a89d1f59e4d217e22ebd..d574f8eed8cc6fe9b72fa329a3167f288ec937ec 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -5062,7 +5062,8 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { |
// Check for 1-byte or 2-byte string. |
__ bind(&flat_string); |
- STATIC_ASSERT(kAsciiStringTag != 0); |
+ STATIC_ASSERT((kStringEncodingMask & kAsciiStringTag) != 0); |
+ STATIC_ASSERT((kStringEncodingMask & kTwoByteStringTag) == 0); |
__ And(t0, result_, Operand(kStringEncodingMask)); |
__ Branch(&ascii_string, ne, t0, Operand(zero_reg)); |