Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 32e3074d0cdaeac87740bd1dab00369bb354f9f2..7136105806c548426fc7e98c6bacc1e2c29f4ee3 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -3269,7 +3269,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); |
__ test(result, Immediate(kStringEncodingMask)); |
__ j(not_zero, &ascii_string, Label::kNear); |