| Index: src/x87/full-codegen-x87.cc
|
| diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc
|
| index 877f91c508adbedec2d00b6379b4ec4c29d4d35f..8bdaeaf44fdbb14e613c4de546cb69396193c589 100644
|
| --- a/src/x87/full-codegen-x87.cc
|
| +++ b/src/x87/full-codegen-x87.cc
|
| @@ -989,8 +989,8 @@ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
|
|
|
| // Record position before stub call for type feedback.
|
| SetSourcePosition(clause->position());
|
| - Handle<Code> ic =
|
| - CodeFactory::CompareIC(isolate(), Token::EQ_STRICT).code();
|
| + Handle<Code> ic = CodeFactory::CompareIC(isolate(), Token::EQ_STRICT,
|
| + language_mode()).code();
|
| CallIC(ic, clause->CompareId());
|
| patch_site.EmitPatchInfo();
|
|
|
| @@ -5153,7 +5153,8 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
|
|
|
| // Record position and call the compare IC.
|
| SetSourcePosition(expr->position());
|
| - Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code();
|
| + Handle<Code> ic =
|
| + CodeFactory::CompareIC(isolate(), op, language_mode()).code();
|
| CallIC(ic, expr->CompareOperationFeedbackId());
|
| patch_site.EmitPatchInfo();
|
|
|
|
|