Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index df9f21cb8529556672d6f84d50d2ffe69200aeb8..d5805b2c02cf31ea01f5b19fe0b6c6e5a85df91d 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -687,7 +687,7 @@ void BytecodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
Visit(left); |
builder()->StoreAccumulatorInRegister(temporary); |
Visit(right); |
- builder()->CompareOperation(op, temporary, language_mode()); |
+ builder()->CompareOperation(op, temporary, language_mode_strength()); |
} |
@@ -726,7 +726,7 @@ void BytecodeGenerator::VisitArithmeticExpression(BinaryOperation* binop) { |
Visit(left); |
builder()->StoreAccumulatorInRegister(temporary); |
Visit(right); |
- builder()->BinaryOperation(op, temporary); |
+ builder()->BinaryOperation(op, temporary, language_mode_strength()); |
} |
@@ -735,6 +735,11 @@ LanguageMode BytecodeGenerator::language_mode() const { |
} |
+Strength BytecodeGenerator::language_mode_strength() const { |
+ return strength(language_mode()); |
+} |
+ |
+ |
int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { |
return info()->feedback_vector()->GetIndex(slot); |
} |