| Index: src/compiler/bytecode-graph-builder.cc
|
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
|
| index 2cfbc1b1b6d7cf405687035fdea973a6b182978e..22299de3b83af5ff0c7f77efe729b39f36ab0dda 100644
|
| --- a/src/compiler/bytecode-graph-builder.cc
|
| +++ b/src/compiler/bytecode-graph-builder.cc
|
| @@ -1140,6 +1140,13 @@ void BytecodeGraphBuilder::VisitDec() {
|
| }
|
|
|
| void BytecodeGraphBuilder::VisitLogicalNot() {
|
| + Node* value = environment()->LookupAccumulator();
|
| + Node* node = NewNode(common()->Select(MachineRepresentation::kTagged), value,
|
| + jsgraph()->FalseConstant(), jsgraph()->TrueConstant());
|
| + environment()->BindAccumulator(node);
|
| +}
|
| +
|
| +void BytecodeGraphBuilder::VisitToBooleanLogicalNot() {
|
| Node* value = NewNode(javascript()->ToBoolean(ToBooleanHint::kAny),
|
| environment()->LookupAccumulator());
|
| Node* node = NewNode(common()->Select(MachineRepresentation::kTagged), value,
|
|
|