Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index e030826292ac1b60f1f9b360d045164bab5b1215..f3c006fa1b4c834660a407f69251483c807d7aeb 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2548,7 +2548,7 @@ void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
DCHECK(ToRegister(instr->context()).is(rsi)); |
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 = TokenToCondition(op, false); |
@@ -2832,7 +2832,8 @@ void LCodeGen::DoCmpT(LCmpT* instr) { |
DCHECK(ToRegister(instr->context()).is(rsi)); |
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); |
Condition condition = TokenToCondition(op, false); |