Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 804d060217124bbe9ab11a1e4a2c139999a90321..960c7ccf2967898012bc2b42207e644fa1b93c3b 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3703,11 +3703,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()) { |
@@ -3747,9 +3747,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 r0. |
switch (assign_type) { |
case VARIABLE: |