Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index b9c7328aeedeead9a1f487d827d180fda21d6d73..83329730951f706fc24f434c5821312e7b53ec1c 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2611,7 +2611,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); |
// This instruction also signals no smi code inlined. |
__ cmp(r0, Operand::Zero()); |
@@ -2928,7 +2928,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); |
// This instruction also signals no smi code inlined. |
__ cmp(r0, Operand::Zero()); |