Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index b2bd6c8fc77aa8ef0057d8fcef36555a60a73269..b3cab143cd55931c13ad48f0d9c24da7ef815b4e 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -5020,9 +5020,11 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
__ jmp(&stub_call); |
__ bind(&slow); |
} |
- ToNumberStub convert_stub(isolate()); |
- __ CallStub(&convert_stub); |
- PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
+ if (!is_strong(language_mode())) { |
+ ToNumberStub convert_stub(isolate()); |
+ __ CallStub(&convert_stub); |
+ PrepareForBailoutForId(expr->ToNumberId(), TOS_REG); |
+ } |
// Save result for postfix expressions. |
if (expr->is_postfix()) { |
@@ -5064,6 +5066,9 @@ 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: |