Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index ecac1a0db6472a14e018a9d0c12c96461757dc39..7ae16258e3be0e5fff4b2cd26e6da161fa1441f9 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -959,8 +959,10 @@ void BytecodeGraphBuilder::VisitDec( |
void BytecodeGraphBuilder::VisitLogicalNot( |
const interpreter::BytecodeArrayIterator& iterator) { |
- Node* node = |
- NewNode(javascript()->UnaryNot(), environment()->LookupAccumulator()); |
+ Node* value = |
+ NewNode(javascript()->ToBoolean(), environment()->LookupAccumulator()); |
+ Node* node = NewNode(common()->Select(kMachAnyTagged), value, |
+ jsgraph()->FalseConstant(), jsgraph()->TrueConstant()); |
environment()->BindAccumulator(node); |
} |