| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 194e068ce1a08455ee5862bf35f9737a0c964a34..9778c79b1e714473d0d974001f70422b3ab0b545 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -2805,6 +2805,8 @@ void AstGraphBuilder::VisitLogicalExpression(BinaryOperation* expr) {
|
| Visit(expr->right());
|
| } else if (ast_context()->IsEffect()) {
|
| environment()->Pop();
|
| + } else if (ast_context()->IsTest()) {
|
| + environment()->Poke(0, jsgraph()->TrueConstant());
|
| }
|
| compare_if.Else();
|
| if (!is_logical_and) {
|
| @@ -2812,6 +2814,8 @@ void AstGraphBuilder::VisitLogicalExpression(BinaryOperation* expr) {
|
| Visit(expr->right());
|
| } else if (ast_context()->IsEffect()) {
|
| environment()->Pop();
|
| + } else if (ast_context()->IsTest()) {
|
| + environment()->Poke(0, jsgraph()->FalseConstant());
|
| }
|
| compare_if.End();
|
| ast_context()->ReplaceValue();
|
|
|