Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 2f94f356650d2628c1fece365582a90b6883dbe2..20f513884e1c3b30106754fe830c1258619fd049 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -886,11 +886,11 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm, |
} |
// Rule out short external strings. |
STATIC_ASSERT(kShortExternalStringTag != 0); |
- __ test_b(result, kShortExternalStringMask); |
+ __ test_b(result, Immediate(kShortExternalStringMask)); |
__ j(not_zero, call_runtime); |
// Check encoding. |
STATIC_ASSERT(kTwoByteStringTag == 0); |
- __ test_b(result, kStringEncodingMask); |
+ __ test_b(result, Immediate(kStringEncodingMask)); |
__ mov(result, FieldOperand(string, ExternalString::kResourceDataOffset)); |
__ j(not_equal, &one_byte_external, Label::kNear); |
// Two-byte string. |