Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 7ae16258e3be0e5fff4b2cd26e6da161fa1441f9..17f918e84bd9d7c339c1c6be3f731b51e84375b8 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -947,13 +947,25 @@ void BytecodeGraphBuilder::VisitShiftRightLogical( |
void BytecodeGraphBuilder::VisitInc( |
const interpreter::BytecodeArrayIterator& iterator) { |
- UNIMPLEMENTED(); |
+ const Operator* js_op = |
+ javascript()->Add(language_mode(), BinaryOperationHints::Any()); |
+ Node* node = NewNode(js_op, environment()->LookupAccumulator(), |
+ jsgraph()->OneConstant()); |
+ |
+ AddEmptyFrameStateInputs(node); |
+ environment()->BindAccumulator(node); |
} |
void BytecodeGraphBuilder::VisitDec( |
const interpreter::BytecodeArrayIterator& iterator) { |
- UNIMPLEMENTED(); |
+ const Operator* js_op = |
+ javascript()->Subtract(language_mode(), BinaryOperationHints::Any()); |
+ Node* node = NewNode(js_op, environment()->LookupAccumulator(), |
+ jsgraph()->OneConstant()); |
+ |
+ AddEmptyFrameStateInputs(node); |
+ environment()->BindAccumulator(node); |
} |