Index: src/x87/codegen-x87.cc |
diff --git a/src/x87/codegen-x87.cc b/src/x87/codegen-x87.cc |
index c66166f7f0e4e1443c06a90115bb3c0120f5ccba..0a39e85816ca0ac88e1c141735efb14d8e7b3f66 100644 |
--- a/src/x87/codegen-x87.cc |
+++ b/src/x87/codegen-x87.cc |
@@ -545,11 +545,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. |