Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 55484123c82175e4256a7865c76a46cbe15f1d49..1c71e8b4500ba72aa63824b5ce85880110f9d426 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -3715,11 +3715,11 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
__ jmp(&stub_call); |
__ bind(&slow); |
} |
- if (!is_strong(language_mode())) { |
- ToNumberStub convert_stub(isolate()); |
- __ CallStub(&convert_stub); |
- PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
- } |
+ |
+ // Convert old value into a number. |
+ ToNumberStub convert_stub(isolate()); |
+ __ CallStub(&convert_stub); |
+ PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
// Save result for postfix expressions. |
if (expr->is_postfix()) { |
@@ -3758,9 +3758,6 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
patch_site.EmitPatchInfo(); |
__ bind(&done); |
- if (is_strong(language_mode())) { |
- PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
- } |
// Store the value returned in v0. |
switch (assign_type) { |
case VARIABLE: |