Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 9b48da1244d7255b0e28dfeae413103d656d802c..fe6fe99dff2c5859e3d814d5620f0f2c545d5bcd 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -3722,11 +3722,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()) { |
@@ -3765,9 +3765,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: |