Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 77a6fbe84195b4fc7f0bd014aec179801b124850..b1bee84877ec7da03a7f1000ce35a7f8e55097ac 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -3585,11 +3585,11 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
__ jmp(&stub_call, Label::kNear); |
__ 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()) { |
@@ -3629,9 +3629,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 eax. |
switch (assign_type) { |
case VARIABLE: |