| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index acbe53a4b43876c0d77d49a6f22d563e998a8f34..83a2ae21a6450a4154af6c56d04dfba3c00e22a4 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -2839,7 +2839,7 @@ void BytecodeGenerator::VisitLogicalOrExpression(BinaryOperation* binop) {
|
| if (execution_result()->IsTest()) {
|
| TestResultScope* test_result = execution_result()->AsTest();
|
|
|
| - if (left->ToBooleanIsTrue() || right->ToBooleanIsTrue()) {
|
| + if (left->ToBooleanIsTrue()) {
|
| builder()->Jump(test_result->NewThenLabel());
|
| } else if (left->ToBooleanIsFalse() && right->ToBooleanIsFalse()) {
|
| builder()->Jump(test_result->NewElseLabel());
|
| @@ -2874,7 +2874,7 @@ void BytecodeGenerator::VisitLogicalAndExpression(BinaryOperation* binop) {
|
| if (execution_result()->IsTest()) {
|
| TestResultScope* test_result = execution_result()->AsTest();
|
|
|
| - if (left->ToBooleanIsFalse() || right->ToBooleanIsFalse()) {
|
| + if (left->ToBooleanIsFalse()) {
|
| builder()->Jump(test_result->NewElseLabel());
|
| } else if (left->ToBooleanIsTrue() && right->ToBooleanIsTrue()) {
|
| builder()->Jump(test_result->NewThenLabel());
|
|
|