Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index ab8868977e54bc8edf37fe78cb38656c2f46924b..e2d35e4034f92eb9e99c0d92ecd6915589d5a4c1 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2791,7 +2791,7 @@ void BytecodeGenerator::VisitCountOperation(CountOperation* expr) { |
old_value = register_allocator()->outer()->NewRegister(); |
// Convert old value into a number before saving it. |
- builder()->CastAccumulatorToNumber().StoreAccumulatorInRegister(old_value); |
+ builder()->CastAccumulatorToNumber(old_value); |
} |
// Perform +1/-1 operation. |