Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 2ad757f843c5e47feb0583f7d3e8ef95ff7247de..50752cf06bd88c62f93d254ab01fcaf90f38a01e 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2420,7 +2420,8 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
__ bind(&stub_call); |
__ movp(rax, rcx); |
- Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |
+ Handle<Code> code = CodeFactory::BinaryOpIC( |
+ isolate(), op, language_mode()).code(); |
CallIC(code, expr->BinaryOperationFeedbackId()); |
patch_site.EmitPatchInfo(); |
__ jmp(&done, Label::kNear); |
@@ -2532,7 +2533,8 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
__ Pop(rdx); |
- Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |
+ Handle<Code> code = CodeFactory::BinaryOpIC( |
+ isolate(), op, language_mode()).code(); |
JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
CallIC(code, expr->BinaryOperationFeedbackId()); |
patch_site.EmitPatchInfo(); |
@@ -4944,8 +4946,8 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
__ bind(&stub_call); |
__ movp(rdx, rax); |
__ Move(rax, Smi::FromInt(1)); |
- Handle<Code> code = |
- CodeFactory::BinaryOpIC(isolate(), expr->binary_op()).code(); |
+ Handle<Code> code = CodeFactory::BinaryOpIC( |
+ isolate(), expr->binary_op(), language_mode()).code(); |
CallIC(code, expr->CountBinOpFeedbackId()); |
patch_site.EmitPatchInfo(); |
__ bind(&done); |