Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 404b9d3b59e92c9140e03d2df7abbcfa3f984f0e..43035eb3744602554fb7861a9e32b33ed80210a3 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2750,7 +2750,9 @@ void BytecodeGenerator::VisitCountOperation(CountOperation* expr) { |
if (is_postfix) { |
// Convert old value into a number before saving it. |
old_value = register_allocator()->NewRegister(); |
- builder()->ConvertAccumulatorToNumber(old_value); |
+ builder() |
+ ->ConvertAccumulatorToNumber(old_value) |
+ .LoadAccumulatorWithRegister(old_value); |
Jarin
2016/11/08 14:39:28
Does not this mean that the feedback for the binop
|
} |
// Perform +1/-1 operation. |