Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index 0373312403548a87ec72225946b2d6489dce4e93..3979bcc9e15e71b42ae52fa1f5beedccb631f9c8 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -2541,7 +2541,7 @@ void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
DCHECK(ToRegister(instr->context()).is(cp)); |
Token::Value op = instr->op(); |
- Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code(); |
+ Handle<Code> ic = CodeFactory::CompareIC(isolate(), op, SLOPPY).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
Condition condition = ComputeCompareCondition(op); |
@@ -2843,7 +2843,8 @@ void LCodeGen::DoCmpT(LCmpT* instr) { |
DCHECK(ToRegister(instr->context()).is(cp)); |
Token::Value op = instr->op(); |
- Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code(); |
+ Handle<Code> ic = |
+ CodeFactory::CompareIC(isolate(), op, instr->language_mode()).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
// On MIPS there is no need for a "no inlined smi code" marker (nop). |