Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index e96f7c420c2f5f5cd5cfe56fc623f2cdee1ad000..dd4d0c68d6683ef49775ac33504c903bda5420e6 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -1017,8 +1017,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(); |
@@ -5250,7 +5250,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(); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |